mirror of
https://github.com/flarum/core.git
synced 2025-07-26 03:01:22 +02:00
Check reply with mention can be read by original poster (#39)
This commit is contained in:
@@ -74,7 +74,7 @@ class UpdateMentionsMetadataWhenVisible
|
||||
->whereIn('id', $mentioned)
|
||||
->get()
|
||||
->filter(function ($post) use ($reply) {
|
||||
return $post->user && $post->user->id !== $reply->user_id;
|
||||
return $post->user && $post->user->id !== $reply->user_id && $reply->isVisibleTo($post->user);
|
||||
})
|
||||
->all();
|
||||
|
||||
|
Reference in New Issue
Block a user