kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
Fixed wrong value for anonymousCanListen in nodeInfo
rodzic
d28e252109
commit
e8c81d734f
|
@ -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"
|
||||
],
|
||||
},
|
||||
|
|
Ładowanie…
Reference in New Issue