FEATURE: muted categories should not be missing from drill down
This commit is contained in:
parent
9ec52d9425
commit
22af3fe085
|
@ -281,13 +281,14 @@ class TopicQuery
|
||||||
|
|
||||||
def new_results(options={})
|
def new_results(options={})
|
||||||
result = TopicQuery.new_filter(default_results(options), @user.treat_as_new_topic_start_date)
|
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)
|
suggested_ordering(result, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
def latest_results(options={})
|
def latest_results(options={})
|
||||||
result = default_results(options)
|
result = default_results(options)
|
||||||
remove_muted_categories(result, @user)
|
result = remove_muted_categories(result, @user) unless options[:category].present?
|
||||||
|
result
|
||||||
end
|
end
|
||||||
|
|
||||||
def remove_muted_categories(list, user)
|
def remove_muted_categories(list, user)
|
||||||
|
|
Loading…
Reference in New Issue