mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
Merge branch 'master' into pm-tags
This commit is contained in:
@ -610,7 +610,7 @@ class TopicQuery
|
||||
end
|
||||
|
||||
if search = options[:search]
|
||||
result = result.where("topics.id in (select pp.topic_id from post_search_data pd join posts pp on pp.id = pd.post_id where pd.search_data @@ #{Search.ts_query(search.to_s)})")
|
||||
result = result.where("topics.id in (select pp.topic_id from post_search_data pd join posts pp on pp.id = pd.post_id where pd.search_data @@ #{Search.ts_query(term: search.to_s)})")
|
||||
end
|
||||
|
||||
# NOTE protect against SYM attack can be removed with Ruby 2.2
|
||||
|
Reference in New Issue
Block a user