Update MentionPipeline, prevent duplicate notifications for comments/mentions

pull/1467/head
Daniel Supernault 6 years ago
parent b77cb188b9
commit 0516906183
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

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

Loading…
Cancel
Save