1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 17:36:38 +02:00

fixes author gambit when used with fulltext search, added test to cover (#1620)

* fixes author gambit when used with fulltext search, added test to cover

* Apply fixes from StyleCI

[ci skip] [skip ci]
This commit is contained in:
Daniël Klabbers
2018-10-29 23:01:25 +01:00
committed by Franz Liedke
parent bd10ebff24
commit c446c5cc61
2 changed files with 21 additions and 1 deletions

View File

@@ -54,6 +54,6 @@ class AuthorGambit extends AbstractRegexGambit
$ids[] = $this->users->getIdForUsername($username);
}
$search->getQuery()->whereIn('user_id', $ids, 'and', $negate);
$search->getQuery()->whereIn('discussions.user_id', $ids, 'and', $negate);
}
}