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:
cpradio 2014-09-11 19:21:25 -04:00
parent dfda41567c
commit 1485538434
1 changed files with 2 additions and 0 deletions

View File

@ -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