Dedup the cc of new note before storage

This commit is contained in:
Thomas Sileo 2018-06-04 18:06:04 +02:00
parent b4d44294e2
commit c17a9a5a0c

2
app.py
View file

@ -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,