Fixes duplicate boosts

This commit is contained in:
Mouse Reeve
2021-04-22 18:16:00 -07:00
parent 45fcb0f454
commit 9148f36719
2 changed files with 23 additions and 10 deletions

View File

@ -204,7 +204,11 @@ class ObjectMixin(ActivitypubMixin):
created = created or not bool(self.id)
# first off, we want to save normally no matter what
super().save(*args, **kwargs)
if not broadcast:
if (
not broadcast
or hasattr(self, "status_type")
and self.status_type == "Announce"
):
return
# this will work for objects owned by a user (lists, shelves)