mirror of
https://github.com/discourse/discourse.git
synced 2025-03-26 10:56:39 +08:00
FIX: render secure category topics in RSS if the user can view the topics
This commit is contained in:
parent
7f9b0f5e60
commit
f50d447881
@ -187,7 +187,7 @@ class ListController < ApplicationController
|
|||||||
@link = "#{Discourse.base_url}#{@category.url}"
|
@link = "#{Discourse.base_url}#{@category.url}"
|
||||||
@atom_link = "#{Discourse.base_url}#{@category.url}.rss"
|
@atom_link = "#{Discourse.base_url}#{@category.url}.rss"
|
||||||
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
|
@description = "#{I18n.t('topics_in_category', category: @category.name)} #{@category.description}"
|
||||||
@topic_list = TopicQuery.new.list_new_in_category(@category)
|
@topic_list = TopicQuery.new(current_user).list_new_in_category(@category)
|
||||||
|
|
||||||
render 'list', formats: [:rss]
|
render 'list', formats: [:rss]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user