mirror of
https://github.com/discourse/discourse.git
synced 2025-01-18 13:52:50 +08:00
TRIVIAL: Remove irrelevant comment :)
This commit is contained in:
parent
4a93b1b0bc
commit
a49b38ac35
|
@ -318,7 +318,6 @@ class Topic < ActiveRecord::Base
|
|||
return [] unless title.present?
|
||||
return [] unless raw.present?
|
||||
|
||||
# For now, we only match on title. We'll probably add body later on, hence the API hook
|
||||
similar = Topic.select(sanitize_sql_array(["topics.*, similarity(topics.title, :title) + similarity(p.raw, :raw) AS similarity", title: title, raw: raw]))
|
||||
.visible
|
||||
.where(closed: false, archived: false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user