diff --git a/extensions/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php b/extensions/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php index 267636b78..7a7c4f19c 100755 --- a/extensions/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php +++ b/extensions/mentions/src/Listener/UpdateMentionsMetadataWhenVisible.php @@ -103,7 +103,7 @@ class UpdateMentionsMetadataWhenVisible $post->unsetRelation('mentionsGroups'); $users = User::whereHas('groups', function ($query) use ($mentioned) { - $query->whereIn('id', $mentioned); + $query->whereIn('groups.id', $mentioned); }) ->get() ->filter(function (User $user) use ($post) {