From 26218ce11f4400eb5380517e546ec90e166ca2fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Tue, 22 Oct 2013 16:30:25 +0200 Subject: [PATCH] RSS feeds should contain only publicly-available posts --- app/controllers/list_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/list_controller.rb b/app/controllers/list_controller.rb index 4a756a7fc..ccda31279 100644 --- a/app/controllers/list_controller.rb +++ b/app/controllers/list_controller.rb @@ -28,7 +28,7 @@ class ListController < ApplicationController @link = "#{Discourse.base_url}/#{filter}" @description = I18n.t("rss_description.#{filter}") @atom_link = "#{Discourse.base_url}/#{filter}.rss" - @topic_list = TopicQuery.new(current_user).public_send("list_#{filter}") + @topic_list = TopicQuery.new.public_send("list_#{filter}") render 'list', formats: [:rss] end end