Corrects broadcast flow for objects
This commit is contained in:
parent
7e784fa705
commit
cf477a03ae
|
@ -225,10 +225,9 @@ class ObjectMixin(ActivitypubMixin):
|
||||||
self.broadcast(pure_activity, user, software="other")
|
self.broadcast(pure_activity, user, software="other")
|
||||||
# set bookwyrm so that that type is also sent
|
# set bookwyrm so that that type is also sent
|
||||||
software = "bookwyrm"
|
software = "bookwyrm"
|
||||||
if software == "bookwyrm":
|
# sends to BW only if we just did a pure version for masto
|
||||||
# sends to BW only if we just did a pure version for masto
|
activity = self.to_create_activity(user)
|
||||||
activity = self.to_create_activity(user)
|
self.broadcast(activity, user, software=software)
|
||||||
self.broadcast(activity, user, software=software)
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
# janky as heck, this catches the mutliple inheritence chain
|
# janky as heck, this catches the mutliple inheritence chain
|
||||||
# for boosts and ignores this auxilliary broadcast
|
# for boosts and ignores this auxilliary broadcast
|
||||||
|
|
Loading…
Reference in New Issue