mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 09:53:27 +08:00
parent
20227a2201
commit
33deea4791
@ -52,7 +52,7 @@ class FulltextGambit implements GambitInterface
|
||||
// discussions that have a relevant title or that contain relevant posts.
|
||||
$query
|
||||
->addSelect('posts_ft.most_relevant_post_id')
|
||||
->join(
|
||||
->leftJoin(
|
||||
new Expression('('.$subquery->toSql().') '.$grammar->wrapTable('posts_ft')),
|
||||
'posts_ft.discussion_id', '=', 'discussions.id'
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user