add MbidTaggedContent to nodeinfo (#2284) NOCHANGELOG
This commit is contained in:
parent
4364d82b0b
commit
6c38bae189
|
@ -171,6 +171,9 @@ class NodeInfo21(NodeInfo20):
|
||||||
if pref.get("federation__enabled"):
|
if pref.get("federation__enabled"):
|
||||||
data["features"].append("federation")
|
data["features"].append("federation")
|
||||||
|
|
||||||
|
if pref.get("music__only_allow_musicbrainz_tagged_files"):
|
||||||
|
data["features"].append("onlyMbidTaggedContent")
|
||||||
|
|
||||||
serializer = self.serializer_class(data)
|
serializer = self.serializer_class(data)
|
||||||
return Response(
|
return Response(
|
||||||
serializer.data, status=200, content_type=NODEINFO_2_CONTENT_TYPE
|
serializer.data, status=200, content_type=NODEINFO_2_CONTENT_TYPE
|
||||||
|
|
|
@ -580,6 +580,8 @@ components:
|
||||||
- "audiobooks"
|
- "audiobooks"
|
||||||
- "federation"
|
- "federation"
|
||||||
- "anonymousCanListen"
|
- "anonymousCanListen"
|
||||||
|
- "onlyMbidTaggedContent"
|
||||||
|
|
||||||
Error:
|
Error:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in New Issue