FIX: Category hashtag is cooked incorrectly.

This commit is contained in:
Guo Xiang Tan 2016-02-10 17:08:57 +08:00
parent ee38572be3
commit 39aaa181e1

View File

@ -50,7 +50,7 @@ module PrettyText
def category_hashtag_lookup(category_slug) def category_hashtag_lookup(category_slug)
if category = Category.query_from_hashtag_slug(category_slug) if category = Category.query_from_hashtag_slug(category_slug)
category.url_with_id [category.url_with_id, text]
else else
nil nil
end end