mirror of
https://github.com/jointakahe/takahe.git
synced 2024-11-10 17:31:03 +00:00
Identity background images can be relative (#250)
This commit is contained in:
parent
043a41afd3
commit
9fb18ac841
1 changed files with 1 additions and 1 deletions
|
@ -278,7 +278,7 @@ class Identity(StatorModel):
|
|||
Returns a background image for us, returning None if there isn't one
|
||||
"""
|
||||
if self.image:
|
||||
return RelativeAbsoluteUrl(self.image.url)
|
||||
return AutoAbsoluteUrl(self.image.url)
|
||||
elif self.image_uri:
|
||||
return AutoAbsoluteUrl(f"/proxy/identity_image/{self.pk}/")
|
||||
return None
|
||||
|
|
Loading…
Reference in a new issue