mirror of
https://github.com/flarum/core.git
synced 2025-07-29 20:50:28 +02:00
Check access before send Mention notification
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user