Dedup the cc of new note before storage

master
Thomas Sileo 2018-06-04 18:06:04 +02:00
rodzic b4d44294e2
commit c17a9a5a0c
1 zmienionych plików z 1 dodań i 1 usunięć

2
app.py
Wyświetl plik

@ -1122,7 +1122,7 @@ def api_new_note():
cc.append(tag['href'])
note = activitypub.Note(
cc=cc,
cc=list(set(cc)),
to=[to if to else config.AS_PUBLIC],
content=content,
tag=tags,