One (hopefully) last fix

This commit is contained in:
Mouse Reeve 2021-08-02 20:07:46 -07:00
parent a334970692
commit 39b2f37947
2 changed files with 2 additions and 2 deletions

View file

@ -356,7 +356,7 @@ def image_serializer(value, alt):
else:
return None
if not url[:4] == "http":
url = "https://{:s}{:s}".format(DOMAIN, url)
url = "https://{:s}/{:s}".format(DOMAIN, url)
return activitypub.Document(url=url, name=alt)

View file

@ -17,7 +17,7 @@ from django.db import models
from django.test import TestCase
from django.utils import timezone
from bookwyrm import activitypub, settings
from bookwyrm import activitypub
from bookwyrm.activitypub.base_activity import ActivityObject
from bookwyrm.models import fields, User, Status
from bookwyrm.models.base_model import BookWyrmModel