From 05169061839bfefcb083cb610b7bda8d4d9e68e8 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Tue, 25 Jun 2019 21:18:30 -0600 Subject: [PATCH] Update MentionPipeline, prevent duplicate notifications for comments/mentions --- app/Jobs/MentionPipeline/MentionPipeline.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Jobs/MentionPipeline/MentionPipeline.php b/app/Jobs/MentionPipeline/MentionPipeline.php index e75ede04..ea833345 100644 --- a/app/Jobs/MentionPipeline/MentionPipeline.php +++ b/app/Jobs/MentionPipeline/MentionPipeline.php @@ -50,7 +50,7 @@ class MentionPipeline implements ShouldQueue $exists = Notification::whereProfileId($target) ->whereActorId($actor->id) - ->whereAction('mention') + ->whereIn('action', ['mention', 'comment']) ->whereItemId($status->id) ->whereItemType('App\Status') ->count();