Skip to content

Commit

Permalink
Update SendNotificationWhenPostIsFlagged.php (#21)
Browse files Browse the repository at this point in the history
use the correct user column on flags table for filtering flagging user from getting a notifications
  • Loading branch information
luceos committed May 23, 2022
1 parent 724b1c1 commit 029999e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Jobs/SendNotificationWhenPostIsFlagged.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function handle(NotificationSyncer $notifications)
$flag = $this->flag;

$notify = User::query()
->where('users.id', '!=', $flag->actor->id)
->where('users.id', '!=', $flag->user_id)
->where('preferences', 'regexp', new Expression('\'"notify_postFlagged_[a-z]+":true\''))
->get();

Expand Down

0 comments on commit 029999e

Please sign in to comment.