mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FEATURE: Add querystring value for Visible
Allow advanced functionality to only show visible topics on the latest, unread, new pages.
This commit is contained in:
parent
abe420b322
commit
dfda41567c
1 changed files with 2 additions and 0 deletions
|
@ -288,6 +288,8 @@ class TopicQuery
|
|||
result = result.where('topics.closed')
|
||||
when 'archived'
|
||||
result = result.where('topics.archived')
|
||||
when 'visible'
|
||||
result = result.where('topics.visible')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue