mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 17:45:18 +02:00
See #170: added missing attributes on library Audio to make these parsable by Mastodon
This commit is contained in:
parent
806ab2b3f0
commit
828f602b79
2 changed files with 12 additions and 1 deletions
|
@ -1170,6 +1170,10 @@ class UploadSerializer(jsonld.JsonLdSerializer):
|
|||
},
|
||||
],
|
||||
"track": TrackSerializer(track, context={"include_ap_context": False}).data,
|
||||
"to": contexts.AS.Public
|
||||
if instance.library.privacy_level == "everyone"
|
||||
else "",
|
||||
"attributedTo": instance.library.actor.fid,
|
||||
}
|
||||
if instance.modification_date:
|
||||
d["updated"] = instance.modification_date.isoformat()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue