mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 17:28:12 +02:00
Fixed broken urls in manifest.json
This commit is contained in:
parent
ef6219e8c4
commit
9ab3afa47f
3 changed files with 9 additions and 3 deletions
|
@ -10,6 +10,7 @@ from rest_framework.response import Response
|
|||
|
||||
from funkwhale_api.common import middleware
|
||||
from funkwhale_api.common import preferences
|
||||
from funkwhale_api.federation import utils as federation_utils
|
||||
from funkwhale_api.users.oauth import permissions as oauth_permissions
|
||||
|
||||
from . import nodeinfo
|
||||
|
@ -57,6 +58,7 @@ class SpaManifest(views.APIView):
|
|||
)
|
||||
parsed_manifest = json.loads(existing_manifest)
|
||||
parsed_manifest["short_name"] = settings.APP_NAME
|
||||
parsed_manifest["start_url"] = federation_utils.full_url("/")
|
||||
instance_name = preferences.get("instance__name")
|
||||
if instance_name:
|
||||
parsed_manifest["short_name"] = instance_name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue