Skip to content

Commit 029999e

Browse files
authored
Update SendNotificationWhenPostIsFlagged.php (#21)
use the correct user column on flags table for filtering flagging user from getting a notifications
1 parent 724b1c1 commit 029999e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Jobs/SendNotificationWhenPostIsFlagged.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function handle(NotificationSyncer $notifications)
3636
$flag = $this->flag;
3737

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

0 commit comments

Comments
 (0)