See #170: deduplicate tags in Audio ap representation

environments/review-docs-confi-pvdyb2/deployments/4739
Eliot Berriot 2020-04-10 12:03:43 +02:00
rodzic c0cbda9451
commit 176bd5053e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6B501DFD73514E14
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -1896,7 +1896,7 @@ class ChannelUploadSerializer(jsonld.JsonLdSerializer):
include_image(data, upload.track.attachment_cover)
tags = [item.tag.name for item in upload.get_all_tagged_items()]
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])
if self.context.get("include_ap_context", True):