forked from mirrors/bookwyrm
fixes avoiding mention and reply notification
This commit is contained in:
parent
e6b9985f95
commit
b774e946f3
1 changed files with 3 additions and 3 deletions
|
@ -73,9 +73,9 @@ class Status(OrderedCollectionPageMixin, BookWyrmModel):
|
|||
)
|
||||
for mention_user in self.mention_users.all():
|
||||
# avoid double-notifying about this status
|
||||
if not mention_user.local or notification_model.objects.filter(
|
||||
user=mention_user, related_status=self,
|
||||
related_user=self.user).exists():
|
||||
if not mention_user.local or \
|
||||
(self.reply_parent and \
|
||||
mention_user == self.reply_parent.user):
|
||||
continue
|
||||
notification_model.objects.create(
|
||||
user=mention_user,
|
||||
|
|
Loading…
Reference in a new issue