mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Revert "Allowing poll feed with UTF-8 title"
This reverts commit 63704c5cee
.
This commit is contained in:
parent
19be0ff744
commit
6182af5e37
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ class SearchObserver < ActiveRecord::Observer
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.update_topics_index(topic_id, title, cooked)
|
def self.update_topics_index(topic_id, title, cooked)
|
||||||
search_data = title.force_encoding(Encoding::UTF_8).dup << " " << scrub_html_for_search(cooked)[0...Topic::MAX_SIMILAR_BODY_LENGTH]
|
search_data = title.dup << " " << scrub_html_for_search(cooked)[0...Topic::MAX_SIMILAR_BODY_LENGTH]
|
||||||
update_index('topic', topic_id, search_data)
|
update_index('topic', topic_id, search_data)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue