mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
FEATURE: muted categories should not be missing from drill down
This commit is contained in:
parent
9ec52d9425
commit
22af3fe085
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue