mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 02:14:58 +08:00
BUGFIX: JSON requests don't exclude categories from filters
This commit is contained in:
@ -43,12 +43,8 @@ class TopMenuItem
|
||||
name.split('/')[1]
|
||||
end
|
||||
|
||||
def query_should_exclude_category?(action_name, format)
|
||||
if format.blank? || format == "html"
|
||||
matches_action?(action_name) && has_filter?
|
||||
else
|
||||
false
|
||||
end
|
||||
def query_should_exclude_category?(action_name)
|
||||
matches_action?(action_name) && has_filter?
|
||||
end
|
||||
|
||||
def matches_action?(action_name)
|
||||
|
Reference in New Issue
Block a user