mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 01:19:16 +02:00
Resolve "Have an actor for our users"
This commit is contained in:
parent
c335e4d283
commit
6b16a8b963
17 changed files with 308 additions and 9 deletions
|
@ -5,6 +5,8 @@ def full_url(path):
|
|||
"""
|
||||
Given a relative path, return a full url usable for federation purpose
|
||||
"""
|
||||
if path.startswith("http://") or path.startswith("https://"):
|
||||
return path
|
||||
root = settings.FUNKWHALE_URL
|
||||
if path.startswith("/") and root.endswith("/"):
|
||||
return root + path[1:]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue