From db426d71eed978fdb80a692a22a5feef5ec795fd Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 17 Mar 2021 09:22:45 -0700 Subject: [PATCH] Fixes failed serialization of empty avatar field --- bookwyrm/activitypub/base_activity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/activitypub/base_activity.py b/bookwyrm/activitypub/base_activity.py index 170bdfb9f..791502d01 100644 --- a/bookwyrm/activitypub/base_activity.py +++ b/bookwyrm/activitypub/base_activity.py @@ -75,7 +75,7 @@ class ActivityObject: for field in fields(self): try: value = kwargs[field.name] - if value in (None, MISSING): + if value in (None, MISSING, {}): raise KeyError() try: is_subclass = issubclass(field.type, ActivityObject)