diff --git a/lib/onebox/engine/discourse_local_onebox.rb b/lib/onebox/engine/discourse_local_onebox.rb index 71a3afdcf26..c1976de6091 100644 --- a/lib/onebox/engine/discourse_local_onebox.rb +++ b/lib/onebox/engine/discourse_local_onebox.rb @@ -57,9 +57,10 @@ module Onebox } end + category_name = '' category = topic.category - if category - category = "#{category.name}" + if category && !category.uncategorized? + category_name = "#{category.name}" end quote = post.excerpt(SiteSetting.post_onebox_maxlength) @@ -71,7 +72,7 @@ module Onebox views: topic.views, posters: posters, quote: quote, - category: category, + category_name: category_name, topic: topic.id @template = 'topic' diff --git a/lib/onebox/templates/discourse_topic_onebox.handlebars b/lib/onebox/templates/discourse_topic_onebox.handlebars index 42c55b209ca..df209a0d798 100644 --- a/lib/onebox/templates/discourse_topic_onebox.handlebars +++ b/lib/onebox/templates/discourse_topic_onebox.handlebars @@ -2,7 +2,7 @@
{{{quote}}}