Fixed wrong value for anonymousCanListen in nodeInfo

merge-requests/552/head
Eliot Berriot 2019-01-21 09:52:41 +01:00
rodzic d28e252109
commit e8c81d734f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: DD6965E2476E5C27
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -28,7 +28,7 @@ def get():
"federationNeedsApproval": preferences.get(
"federation__music_needs_approval"
),
"anonymousCanListen": preferences.get(
"anonymousCanListen": not preferences.get(
"common__api_authentication_required"
),
},

Wyświetl plik

@ -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"
],
},