From 22af3fe085988a026f4b84be17a5088568919263 Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 12 Feb 2014 17:01:13 +1100 Subject: [PATCH] FEATURE: muted categories should not be missing from drill down --- lib/topic_query.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 349703b2b..b0e4d5452 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -281,13 +281,14 @@ class TopicQuery def new_results(options={}) result = TopicQuery.new_filter(default_results(options), @user.treat_as_new_topic_start_date) - result = remove_muted_categories(result, @user) + result = remove_muted_categories(result, @user) unless options[:category].present? suggested_ordering(result, options) end def latest_results(options={}) result = default_results(options) - remove_muted_categories(result, @user) + result = remove_muted_categories(result, @user) unless options[:category].present? + result end def remove_muted_categories(list, user)