mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-04 05:09:16 +02:00
Fix #982: Removed "nodeinfo disabled" setting, as nodeinfo is required for the UI to work
This commit is contained in:
parent
dd9cca432d
commit
175d701247
7 changed files with 1 additions and 36 deletions
|
@ -4,7 +4,6 @@ from dynamic_preferences.registries import global_preferences_registry
|
|||
from rest_framework import views
|
||||
from rest_framework.response import Response
|
||||
|
||||
from funkwhale_api.common import preferences
|
||||
from funkwhale_api.users.oauth import permissions as oauth_permissions
|
||||
|
||||
from . import nodeinfo
|
||||
|
@ -38,7 +37,5 @@ class NodeInfo(views.APIView):
|
|||
authentication_classes = []
|
||||
|
||||
def get(self, request, *args, **kwargs):
|
||||
if not preferences.get("instance__nodeinfo_enabled"):
|
||||
return Response(status=404)
|
||||
data = nodeinfo.get()
|
||||
return Response(data, status=200, content_type=NODEINFO_2_CONTENT_TYPE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue