sketchy fix for boost broadcasting

This commit is contained in:
Mouse Reeve
2021-02-06 21:26:39 -08:00
parent 63fe9777e2
commit 272685f27d
3 changed files with 16 additions and 11 deletions

View File

@ -183,7 +183,12 @@ class ObjectMixin(ActivitypubMixin):
# broadcast Create activities for objects owned by a local user
if not user or not user.local:
return
activity = self.to_create_activity(user)
try:
activity = self.to_create_activity(user)
except KeyError:
# janky as heck, this catches the mutliple inheritence chain
# for boosts and ignores this auxilliary broadcast
return
self.broadcast(activity, user)
return