mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Fix: Integrity constraint violation: 1052 Column 'id' in where clause is ambiguous (#3772)
This commit is contained in:
parent
8372363cc2
commit
85b63681ae
|
@ -103,7 +103,7 @@ class UpdateMentionsMetadataWhenVisible
|
||||||
$post->unsetRelation('mentionsGroups');
|
$post->unsetRelation('mentionsGroups');
|
||||||
|
|
||||||
$users = User::whereHas('groups', function ($query) use ($mentioned) {
|
$users = User::whereHas('groups', function ($query) use ($mentioned) {
|
||||||
$query->whereIn('id', $mentioned);
|
$query->whereIn('groups.id', $mentioned);
|
||||||
})
|
})
|
||||||
->get()
|
->get()
|
||||||
->filter(function (User $user) use ($post) {
|
->filter(function (User $user) use ($post) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user