Tests not showing notifications for self boosts
This commit is contained in:
parent
64d8ef8b16
commit
81bd3f5be8
2 changed files with 20 additions and 5 deletions
|
@ -349,7 +349,7 @@ class Boost(ActivityMixin, Status):
|
|||
def save(self, *args, **kwargs):
|
||||
""" save and notify """
|
||||
super().save(*args, **kwargs)
|
||||
if not self.boosted_status.user.local:
|
||||
if not self.boosted_status.user.local or self.boosted_status.user == self.user:
|
||||
return
|
||||
|
||||
notification_model = apps.get_model("bookwyrm.Notification", require_ready=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue