From c77cb38c83cdb4037947ca0ddd3fbb403e83b1d3 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 5 Oct 2020 14:34:16 -0700 Subject: [PATCH] Icon url serialization needs schema --- bookwyrm/models/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/models/user.py b/bookwyrm/models/user.py index 529df49d..0673f53f 100644 --- a/bookwyrm/models/user.py +++ b/bookwyrm/models/user.py @@ -85,7 +85,7 @@ class User(OrderedCollectionPageMixin, AbstractUser): # TODO not the right way to get the media type media_type = 'image/%s' % url.split('.')[-1] else: - url = '%s/static/images/default_avi.jpg' % DOMAIN + url = 'https://%s/static/images/default_avi.jpg' % DOMAIN media_type = 'image/jpeg' return activitypub.Image(media_type, url, 'Image')