From 815dbc81e3a93c7950c270a25fee68f3e318d8eb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 2 Aug 2021 19:50:33 -0700 Subject: [PATCH] Remove static tempaletag from image_serializer --- bookwyrm/models/fields.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/bookwyrm/models/fields.py b/bookwyrm/models/fields.py index 11854dff..3b369e84 100644 --- a/bookwyrm/models/fields.py +++ b/bookwyrm/models/fields.py @@ -11,7 +11,6 @@ from django.core.exceptions import ValidationError from django.core.files.base import ContentFile from django.db import models from django.forms import ClearableFileInput, ImageField as DjangoImageField -from django.templatetags.static import static from django.utils import timezone from django.utils.translation import gettext_lazy as _ @@ -356,7 +355,6 @@ def image_serializer(value, alt): url = value.url else: return None - url = static(url) if not url[:4] == "http": url = "https://{:s}{:s}".format(DOMAIN, url) return activitypub.Document(url=url, name=alt)