MCPcopy
hub / github.com/diffgram/diffgram / get_profile_image_thumb_url

Method get_profile_image_thumb_url

shared/database/user.py:176–180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

174 return self.profile_image_url
175
176 def get_profile_image_thumb_url(self):
177 if (self.profile_image_expiry is None or self.profile_image_expiry <= time.time()) and self.profile_image_blob:
178 self.profile_image_url = data_tools.build_secure_url(blob_name = self.profile_image_blob)
179 self.profile_image_thumb_url = data_tools.build_secure_url(blob_name = self.profile_image_thumb_blob)
180 return self.profile_image_thumb_url
181
182 def serialize(self):
183

Callers 3

serializeMethod · 0.95

Calls 1

build_secure_urlMethod · 0.45

Tested by

no test coverage detected