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"):
|
||||
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
|
||||
|
|
|
@ -580,6 +580,8 @@ components:
|
|||
- "audiobooks"
|
||||
- "federation"
|
||||
- "anonymousCanListen"
|
||||
- "onlyMbidTaggedContent"
|
||||
|
||||
Error:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Reference in New Issue