mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update MentionPipeline, prevent duplicate notifications for comments/mentions
This commit is contained in:
parent
b77cb188b9
commit
0516906183
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class MentionPipeline implements ShouldQueue
|
||||||
|
|
||||||
$exists = Notification::whereProfileId($target)
|
$exists = Notification::whereProfileId($target)
|
||||||
->whereActorId($actor->id)
|
->whereActorId($actor->id)
|
||||||
->whereAction('mention')
|
->whereIn('action', ['mention', 'comment'])
|
||||||
->whereItemId($status->id)
|
->whereItemId($status->id)
|
||||||
->whereItemType('App\Status')
|
->whereItemType('App\Status')
|
||||||
->count();
|
->count();
|
||||||
|
|
Loading…
Reference in a new issue