Fixes recursive serializer

This commit is contained in:
Mouse Reeve 2021-02-17 08:34:21 -08:00
parent 29df2e0fac
commit 7b27f98e20

View file

@ -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: