Discard remote boosts

This commit is contained in:
Mouse Reeve
2020-12-18 12:38:27 -08:00
parent 33a8864eb4
commit 0c6049b81c
4 changed files with 35 additions and 21 deletions

View File

@ -74,6 +74,9 @@ class ActivityObject:
model.activity_serializer)
)
if hasattr(model, 'ignore_activity') and model.ignore_activity(self):
return instance
# check for an existing instance, if we're not updating a known obj
instance = instance or model.find_existing(self.serialize()) or model()