Skip to content
Snippets Groups Projects
Verified Commit e8c81d73 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed wrong value for anonymousCanListen in nodeInfo

parent d28e2521
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ def get():
"federationNeedsApproval": preferences.get(
"federation__music_needs_approval"
),
"anonymousCanListen": preferences.get(
"anonymousCanListen": not preferences.get(
"common__api_authentication_required"
),
},
......
......@@ -32,7 +32,7 @@ def test_nodeinfo_dump(preferences, mocker):
"federationNeedsApproval": preferences[
"federation__music_needs_approval"
],
"anonymousCanListen": preferences[
"anonymousCanListen": not preferences[
"common__api_authentication_required"
],
"tracks": {"total": stats["tracks"]},
......@@ -69,7 +69,7 @@ def test_nodeinfo_dump_stats_disabled(preferences, mocker):
"federationNeedsApproval": preferences[
"federation__music_needs_approval"
],
"anonymousCanListen": preferences[
"anonymousCanListen": not preferences[
"common__api_authentication_required"
],
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment