Commit 426f6f0d authored by Eliot Berriot's avatar Eliot Berriot 💬

Fixed failing test

parent b14bdd4e
Pipeline #4586 failed with stages
in 44 seconds
......@@ -1012,12 +1012,13 @@ class TrackSerializer(MusicEntitySerializer):
metadata = music_tasks.federation_audio_track_to_metadata(
validated_data, references
metadata['tags'] = tags
from_activity = self.context.get("activity")
if from_activity:
metadata["from_activity_id"] =
track = music_tasks.get_track_from_import_metadata(metadata, update_cover=True)
tags_models.add_tags(track, *tags)
return track
def update(self, obj, validated_data):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment