forked from mirrors/bookwyrm
Icon url serialization needs schema
This commit is contained in:
parent
9b45c2d4d1
commit
c77cb38c83
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
||||||
# TODO not the right way to get the media type
|
# TODO not the right way to get the media type
|
||||||
media_type = 'image/%s' % url.split('.')[-1]
|
media_type = 'image/%s' % url.split('.')[-1]
|
||||||
else:
|
else:
|
||||||
url = '%s/static/images/default_avi.jpg' % DOMAIN
|
url = 'https://%s/static/images/default_avi.jpg' % DOMAIN
|
||||||
media_type = 'image/jpeg'
|
media_type = 'image/jpeg'
|
||||||
return activitypub.Image(media_type, url, 'Image')
|
return activitypub.Image(media_type, url, 'Image')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue