forked from mirrors/bookwyrm
Fixes failed serialization of empty avatar field
This commit is contained in:
parent
d50689e63f
commit
db426d71ee
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue