Dedup the cc of new note before storage
This commit is contained in:
2
app.py
2
app.py
@@ -1122,7 +1122,7 @@ def api_new_note():
|
|||||||
cc.append(tag['href'])
|
cc.append(tag['href'])
|
||||||
|
|
||||||
note = activitypub.Note(
|
note = activitypub.Note(
|
||||||
cc=cc,
|
cc=list(set(cc)),
|
||||||
to=[to if to else config.AS_PUBLIC],
|
to=[to if to else config.AS_PUBLIC],
|
||||||
content=content,
|
content=content,
|
||||||
tag=tags,
|
tag=tags,
|
||||||
|
Reference in New Issue
Block a user