Fixes calls to to_model, init with activitypub partially serialized
This commit is contained in:
parent
3f61675a0a
commit
a9ca3a4290
6 changed files with 24 additions and 17 deletions
|
@ -74,7 +74,8 @@ class ActivityObject:
|
|||
is_subclass = issubclass(field.type, ActivityObject)
|
||||
except TypeError:
|
||||
is_subclass = False
|
||||
if is_subclass:
|
||||
# parse a dict into the appropriate activity
|
||||
if is_subclass and isinstance(value, dict):
|
||||
value = naive_parse(
|
||||
activity_objects, value, serializer=field.type)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue