Tests not showing notifications for self boosts

This commit is contained in:
Mouse Reeve
2021-03-24 12:05:00 -07:00
parent 64d8ef8b16
commit 81bd3f5be8
2 changed files with 20 additions and 5 deletions

View File

@ -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)