RSS feeds should contain only publicly-available posts

This commit is contained in:
Régis Hanol 2013-10-22 16:30:25 +02:00
parent f96ea42974
commit 26218ce11f

View file

@ -28,7 +28,7 @@ class ListController < ApplicationController
@link = "#{Discourse.base_url}/#{filter}" @link = "#{Discourse.base_url}/#{filter}"
@description = I18n.t("rss_description.#{filter}") @description = I18n.t("rss_description.#{filter}")
@atom_link = "#{Discourse.base_url}/#{filter}.rss" @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] render 'list', formats: [:rss]
end end
end end