mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 04:47:08 +08:00
Check access before send Mention notification
This commit is contained in:
parent
ec3db146fc
commit
6f39123bad
@ -130,7 +130,7 @@ class UpdateUserMentionsMetadata
|
||||
$users = User::whereIn('id', $mentioned)
|
||||
->get()
|
||||
->filter(function ($user) use ($post) {
|
||||
return $user->id !== $post->user->id;
|
||||
return $post->isVisibleTo($user) && $user->id !== $post->user->id;
|
||||
})
|
||||
->all();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user