mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 02:39:16 +02:00
Fix #851: wrong og:image url when using S3 storage
This commit is contained in:
parent
9ae2c490ca
commit
ce4a6b0412
3 changed files with 18 additions and 0 deletions
|
@ -113,6 +113,9 @@ def chunk_queryset(source_qs, chunk_size):
|
|||
|
||||
|
||||
def join_url(start, end):
|
||||
if end.startswith("http://") or end.startswith("https://"):
|
||||
# alread a full URL, joining makes no sense
|
||||
return end
|
||||
if start.endswith("/") and end.startswith("/"):
|
||||
return start + end[1:]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue