mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:14:11 +08:00
correct regression where clicking on unlisted topics does not work
This commit is contained in:
parent
73859e8315
commit
e66c51fd85
@ -77,7 +77,7 @@ class TopicsController < ApplicationController
|
|||||||
|
|
||||||
discourse_expires_in 1.minute
|
discourse_expires_in 1.minute
|
||||||
|
|
||||||
if !@topic_view.topic.visible && @topic_view.topic.slug != params[:slug]
|
if !@topic_view.topic.visible && @topic_view.topic.slug != params[:slug] && !request.format.json?
|
||||||
raise Discourse::NotFound
|
raise Discourse::NotFound
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user