mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06: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:
parent
dfda41567c
commit
1485538434
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user