forked from mirrors/bookwyrm
lint
This commit is contained in:
parent
b8b491bbf2
commit
7a716db48a
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ class ImageField(ActivitypubFieldMixin, models.ImageField):
|
||||||
|
|
||||||
url = filepath_to_uri(value)
|
url = filepath_to_uri(value)
|
||||||
if url is not None:
|
if url is not None:
|
||||||
url = url.lstrip('/')
|
url = url.lstrip("/")
|
||||||
url = urljoin(MEDIA_FULL_URL, url)
|
url = urljoin(MEDIA_FULL_URL, url)
|
||||||
|
|
||||||
return url
|
return url
|
||||||
|
|
Loading…
Reference in a new issue