mirror of
https://github.com/discourse/discourse.git
synced 2025-06-03 19:39:30 +08:00
FIX: don't error topic RSS when posts are deleted (#11641)
This commit is contained in:

committed by
GitHub

parent
1cf9231045
commit
4928f9cceb
@ -840,6 +840,8 @@ class TopicsController < ApplicationController
|
||||
end
|
||||
|
||||
def feed
|
||||
raise Discourse::NotFound if !Post.exists?(topic_id: params[:topic_id])
|
||||
|
||||
@topic_view = TopicView.new(params[:topic_id])
|
||||
discourse_expires_in 1.minute
|
||||
render 'topics/show', formats: [:rss]
|
||||
|
Reference in New Issue
Block a user