Fixes Favs

This commit is contained in:
Mouse Reeve
2021-02-15 21:41:08 -08:00
parent 606d89d3bd
commit 08c1553e71
6 changed files with 7 additions and 26 deletions

View File

@ -128,7 +128,7 @@ class ActivitypubRelatedFieldMixin(ActivitypubFieldMixin):
return related_model.find_existing(value)
# this is an activitypub object, which we can deserialize
activity_serializer = related_model.activity_serializer
return activity_serializer(**value).to_model(related_model)
return activity_serializer(**value).to_model()
try:
# make sure the value looks like a remote id
validate_remote_id(value)

View File

@ -364,4 +364,4 @@ def get_remote_reviews(outbox):
for activity in data['orderedItems']:
if not activity['type'] == 'Review':
continue
activitypub.Review(**activity).to_model(Review)
activitypub.Review(**activity).to_model()