From c17a9a5a0c49f34eb57886fa9cc5e220c71df1f1 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 4 Jun 2018 18:06:04 +0200 Subject: [PATCH] Dedup the cc of new note before storage --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 7c2fe81..f0677e1 100644 --- a/app.py +++ b/app.py @@ -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,