Revert previous commit

This commit is contained in:
Joachim 2021-08-04 19:21:56 +02:00
parent ee39e8c036
commit 0db3512eb3

View file

@ -424,7 +424,7 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
}
)
def get_absolute_url(value):
def get_absolute_url(self, value):
"""returns an absolute URL for the image"""
name = getattr(value, "name")
if name is None: