mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 15:03:58 -04:00
correct regression where clicking on unlisted topics does not work
This commit is contained in:
parent
73859e8315
commit
e66c51fd85
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue