mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 21:19:16 +02:00
See #170: deduplicate tags in Audio ap representation
This commit is contained in:
parent
c0cbda9451
commit
176bd5053e
1 changed files with 1 additions and 1 deletions
|
@ -1896,7 +1896,7 @@ class ChannelUploadSerializer(jsonld.JsonLdSerializer):
|
||||||
include_image(data, upload.track.attachment_cover)
|
include_image(data, upload.track.attachment_cover)
|
||||||
tags = [item.tag.name for item in upload.get_all_tagged_items()]
|
tags = [item.tag.name for item in upload.get_all_tagged_items()]
|
||||||
if tags:
|
if tags:
|
||||||
data["tag"] = [repr_tag(name) for name in tags]
|
data["tag"] = [repr_tag(name) for name in sorted(set(tags))]
|
||||||
data["summary"] = " ".join(["#{}".format(name) for name in tags])
|
data["summary"] = " ".join(["#{}".format(name) for name in tags])
|
||||||
|
|
||||||
if self.context.get("include_ap_context", True):
|
if self.context.get("include_ap_context", True):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue