mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 06:56:01 +08:00
FEATURE: Add querystring value for Invisible
Allow advanced functionality to only show invisible topics on the latest, unread, new pages.
This commit is contained in:
@ -290,6 +290,8 @@ class TopicQuery
|
||||
result = result.where('topics.archived')
|
||||
when 'visible'
|
||||
result = result.where('topics.visible')
|
||||
when 'invisible'
|
||||
result = result.where('NOT topics.visible')
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user