mirror of
https://github.com/flarum/core.git
synced 2025-07-26 19:20:21 +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)
|
->whereIn('id', $mentioned)
|
||||||
->get()
|
->get()
|
||||||
->filter(function ($post) use ($reply) {
|
->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();
|
->all();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user