2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

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