better fix for #1253
This commit is contained in:
@@ -161,7 +161,7 @@ class Tag < ActiveRecord::Base
|
|||||||
|
|
||||||
module ParseMethods
|
module ParseMethods
|
||||||
def normalize(query)
|
def normalize(query)
|
||||||
query.to_s.downcase.strip
|
query.to_s.strip
|
||||||
end
|
end
|
||||||
|
|
||||||
def scan_query(query)
|
def scan_query(query)
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ module PostSetPresenters
|
|||||||
end
|
end
|
||||||
|
|
||||||
def related_tags_for_single
|
def related_tags_for_single
|
||||||
tag = Tag.find_by_name(post_set.tag_string)
|
tag = Tag.find_by_name(post_set.tag_string.downcase)
|
||||||
|
|
||||||
if tag
|
if tag
|
||||||
tag.related_tag_array.map(&:first)
|
tag.related_tag_array.map(&:first)
|
||||||
|
|||||||
Reference in New Issue
Block a user