kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
See #170: deduplicate tags in Audio ap representation
rodzic
c0cbda9451
commit
176bd5053e
|
@ -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):
|
||||||
|
|
Ładowanie…
Reference in New Issue