diff --git a/bookwyrm/incoming.py b/bookwyrm/incoming.py index 556c34a27..c1c15ca93 100644 --- a/bookwyrm/incoming.py +++ b/bookwyrm/incoming.py @@ -218,7 +218,9 @@ def handle_create(activity): status = activity.to_model(model) # create a notification if this is a reply + notified = [] if status.reply_parent and status.reply_parent.user.local: + notified.append(status.reply_parent.user) status_builder.create_notification( status.reply_parent.user, 'REPLY', @@ -227,7 +229,7 @@ def handle_create(activity): ) if status.mention_users.exists(): for mentioned_user in status.mention_users.all(): - if not mentioned_user.local: + if not mentioned_user.local or mentioned_user in notified: continue status_builder.create_notification( mentioned_user, diff --git a/bookwyrm/templates/notifications.html b/bookwyrm/templates/notifications.html index f31df76d8..ddcbc0fda 100644 --- a/bookwyrm/templates/notifications.html +++ b/bookwyrm/templates/notifications.html @@ -54,7 +54,7 @@
{{ notification.related_status.published_date | post_date }}