From 1df5a503243842e42e7c8afe037fffe03fb5556c Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Fri, 7 Jun 2013 12:29:12 -0700 Subject: [PATCH] Link to category slug instead of name in onebox --- lib/oneboxer/discourse_local_onebox.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oneboxer/discourse_local_onebox.rb b/lib/oneboxer/discourse_local_onebox.rb index 970f0d5aa90..3914b0bee41 100644 --- a/lib/oneboxer/discourse_local_onebox.rb +++ b/lib/oneboxer/discourse_local_onebox.rb @@ -64,7 +64,7 @@ module Oneboxer category = topic.category if category - category = "#{category.name}" + category = "#{category.name}" end quote = post.excerpt(SiteSetting.post_onebox_maxlength)