Fix #808: Advertise the list of supported upload extensions in the Nodeinfo endpoint

This commit is contained in:
Eliot Berriot 2019-05-02 13:15:33 +02:00
parent 2b7dac2175
commit 119df01335
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 10 additions and 0 deletions

View file

@ -3,6 +3,7 @@ import memoize.djangocache
import funkwhale_api
from funkwhale_api.common import preferences
from funkwhale_api.federation import actors
from funkwhale_api.music import utils as music_utils
from . import stats
@ -34,6 +35,7 @@ def get():
"common__api_authentication_required"
),
},
"supportedUploadExtensions": music_utils.SUPPORTED_EXTENSIONS,
},
}
if share_stats: