From c6b8357c77ba0c501593bcdb72d803cf3eb38e47 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 2 Nov 2020 16:32:56 -0800 Subject: [PATCH] Make tags optional in activitypub Notes --- bookwyrm/activitypub/note.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/activitypub/note.py b/bookwyrm/activitypub/note.py index 357e164f..ebc0cf3c 100644 --- a/bookwyrm/activitypub/note.py +++ b/bookwyrm/activitypub/note.py @@ -20,11 +20,11 @@ class Note(ActivityObject): inReplyTo: str published: str attributedTo: str - tag: List[Link] to: List[str] cc: List[str] content: str replies: Dict + tag: List[Link] = field(default=lambda: []) attachment: List[Image] = field(default=lambda: []) sensitive: bool = False type: str = 'Note'