From e7601db730b5ed896650665aff4bf242b4f154c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Fri, 4 Apr 2014 10:05:40 -0700 Subject: [PATCH] BUGFIX: ensured logged in wasn't listing all anonymous filters --- app/controllers/list_controller.rb | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index c390223811f..884b4793e63 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -27,11 +27,23 @@ class ListController < ApplicationController # anonymous filters Discourse.anonymous_filters, Discourse.anonymous_filters.map { |f| "#{f}_feed".to_sym }, - # categories - @@categories, - # top + # anonymous categorized filters + Discourse.anonymous_filters.map { |f| "category_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "category_none_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "parent_category_category_#{f}".to_sym }, + Discourse.anonymous_filters.map { |f| "parent_category_category_none_#{f}".to_sym }, + # category feeds + :category_feed, + # top summaries :top, - TopTopic.periods.map { |p| "top_#{p}".to_sym } + :category_top, + :category_none_top, + :parent_category_category_top, + # top pages (ie. with a period) + TopTopic.periods.map { |p| "top_#{p}".to_sym }, + TopTopic.periods.map { |p| "category_top_#{p}".to_sym }, + TopTopic.periods.map { |p| "category_none_top_#{p}".to_sym }, + TopTopic.periods.map { |p| "parent_category_category_top_#{p}".to_sym }, ].flatten # Create our filters