Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
funkwhale
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Martin Giger
funkwhale
Commits
5ebaa884
Verified
Commit
5ebaa884
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Send proper activity when listening is created through subsonic API
parent
98c7cb6f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/funkwhale_api/subsonic/views.py
+3
-1
3 additions, 1 deletion
api/funkwhale_api/subsonic/views.py
with
3 additions
and
1 deletion
api/funkwhale_api/subsonic/views.py
+
3
−
1
View file @
5ebaa884
...
...
@@ -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
({})
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment