mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Dedup the cc of new note before storage
This commit is contained in:
parent
b4d44294e2
commit
c17a9a5a0c
1 changed files with 1 additions and 1 deletions
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,
|
||||||
|
|
Loading…
Reference in a new issue