From bf3b3854dce7b227a76352799edef6283c8cf4e7 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Sun, 21 Oct 2018 20:22:50 +0200 Subject: [PATCH] See #573: Added missing type / version in getLicense endpoint --- api/funkwhale_api/subsonic/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/funkwhale_api/subsonic/views.py b/api/funkwhale_api/subsonic/views.py index 37a06f0c7..308ed4913 100644 --- a/api/funkwhale_api/subsonic/views.py +++ b/api/funkwhale_api/subsonic/views.py @@ -8,6 +8,7 @@ from rest_framework import renderers, response, viewsets from rest_framework.decorators import list_route from rest_framework.serializers import ValidationError +import funkwhale_api from funkwhale_api.activity import record from funkwhale_api.common import preferences from funkwhale_api.favorites.models import TrackFavorite @@ -122,6 +123,8 @@ class SubsonicViewSet(viewsets.GenericViewSet): data = { "status": "ok", "version": "1.16.0", + "type": "funkwhale", + "funkwhale-version": funkwhale_api.__version__, "license": { "valid": "true", "email": "valid@valid.license",