Fix URL generation when not at domain root
This commit is contained in:
parent
242bf7b515
commit
1c076049cf
7 changed files with 14 additions and 14 deletions
|
@ -9,7 +9,7 @@ def proxied_media_url(url: str) -> str:
|
|||
if url.startswith(BASE_URL):
|
||||
return url
|
||||
|
||||
return "/proxy/media/" + base64.urlsafe_b64encode(url.encode()).decode()
|
||||
return BASE_URL + "/proxy/media/" + base64.urlsafe_b64encode(url.encode()).decode()
|
||||
|
||||
|
||||
def resized_media_url(url: str, size: int) -> str:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue