add MbidTaggedContent to nodeinfo (#2284) NOCHANGELOG

This commit is contained in:
petitminion 2024-02-16 09:57:31 +00:00
parent 4364d82b0b
commit 6c38bae189
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -580,6 +580,8 @@ components:
- "audiobooks"
- "federation"
- "anonymousCanListen"
- "onlyMbidTaggedContent"
Error:
type: object
properties: