Update MentionPipeline, prevent duplicate notifications for comments/mentions

This commit is contained in:
Daniel Supernault 2019-06-25 21:18:30 -06:00
parent b77cb188b9
commit 0516906183
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 1 deletions

View File

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