Merge pull request #2695 from riking/local-onebox-category

Fix local onebox subcategory urls
This commit is contained in:
Sam 2014-08-26 12:42:24 +10:00
commit f441e4ec03

View File

@ -59,7 +59,7 @@ module Onebox
category = topic.category
if category
category = "<a href=\"/category/#{category.slug}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}; color: ##{category.text_color}\">#{category.name}</a>"
category = "<a href=\"#{category.url}\" class=\"badge badge-category\" style=\"background-color: ##{category.color}; color: ##{category.text_color}\">#{category.name}</a>"
end
quote = post.excerpt(SiteSetting.post_onebox_maxlength)