From 7b27f98e2045cf442dcfb9c755fbd4e36ad45ca0 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 17 Feb 2021 08:34:21 -0800 Subject: [PATCH] Fixes recursive serializer --- 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 a83021ad..10cbf3a0 100644 --- a/bookwyrm/activitypub/base_activity.py +++ b/bookwyrm/activitypub/base_activity.py @@ -166,7 +166,7 @@ class ActivityObject: # recursively serialize for (k, v) in data.items(): try: - is_subclass = issubclass(v, ActivityObject) + is_subclass = issubclass(type(v), ActivityObject) except TypeError: is_subclass = False if is_subclass: