Fix #624: enforce consistentcy in getUser and getMusicFolders endpoint in Subsonic

This commit is contained in:
Eliot Berriot 2019-10-03 11:38:56 +02:00
parent 6628b6d058
commit 28a091335c
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
1 changed files with 5 additions and 1 deletions

View File

@ -236,7 +236,11 @@ def get_music_directory_data(artist):
def get_folders(user):
return []
return [
# Dummy folder ID to match what is returned in the getMusicFolders endpoint
# cf https://dev.funkwhale.audio/funkwhale/funkwhale/issues/624
{"id": 1, "name": "Music"}
]
def get_user_detail_data(user):