mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
BUGFIX: JSON requests don't exclude categories from filters
This commit is contained in:
@ -201,7 +201,7 @@ class ListController < ApplicationController
|
||||
def build_topic_list_options
|
||||
# html format means we need to parse exclude category (aka filter) from the site options top menu
|
||||
menu_items = SiteSetting.top_menu_items
|
||||
menu_item = menu_items.select { |item| item.query_should_exclude_category?(action_name, params[:format]) }.first
|
||||
menu_item = menu_items.select { |item| item.query_should_exclude_category?(action_name) }.first
|
||||
|
||||
# exclude_category = 1. from params / 2. parsed from top menu / 3. nil
|
||||
options = {
|
||||
|
Reference in New Issue
Block a user