mirror of
https://github.com/flarum/core.git
synced 2025-08-01 22:20:21 +02:00
Fix: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous (#3772)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user