Skip to content
Snippets Groups Projects
Verified Commit 5ebaa884 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Send proper activity when listening is created through subsonic API

parent 98c7cb6f
No related branches found
No related tags found
No related merge requests found
......@@ -11,6 +11,7 @@ from rest_framework import viewsets
from rest_framework.decorators import list_route
from rest_framework.serializers import ValidationError
from funkwhale_api.activity import record
from funkwhale_api.common import preferences
from funkwhale_api.favorites.models import TrackFavorite
from funkwhale_api.music import models as music_models
......@@ -569,5 +570,6 @@ class SubsonicViewSet(viewsets.GenericViewSet):
}
})
if serializer.validated_data['submission']:
serializer.save()
l = serializer.save()
record.send(l)
return response.Response({})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment