diff --git a/api/funkwhale_api/instance/views.py b/api/funkwhale_api/instance/views.py index 3272a95d8..f87704452 100644 --- a/api/funkwhale_api/instance/views.py +++ b/api/funkwhale_api/instance/views.py @@ -171,6 +171,9 @@ class NodeInfo21(NodeInfo20): if pref.get("federation__enabled"): data["features"].append("federation") + if pref.get("music__only_allow_musicbrainz_tagged_files"): + data["features"].append("onlyMbidTaggedContent") + serializer = self.serializer_class(data) return Response( serializer.data, status=200, content_type=NODEINFO_2_CONTENT_TYPE diff --git a/docs/specs/nodeinfo21/schema.yml b/docs/specs/nodeinfo21/schema.yml index e454b24c0..58035c2db 100644 --- a/docs/specs/nodeinfo21/schema.yml +++ b/docs/specs/nodeinfo21/schema.yml @@ -580,6 +580,8 @@ components: - "audiobooks" - "federation" - "anonymousCanListen" + - "onlyMbidTaggedContent" + Error: type: object properties: