mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
parent
63a950d842
commit
a4f249a3fb
|
@ -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…
Reference in New Issue
Block a user