mirror of
https://github.com/discourse/discourse.git
synced 2025-06-10 19:59:12 +08:00
Merge pull request #2787 from cpradio/add-visible-status
Add visible/invisible status for Advanced Users
This commit is contained in:
@ -288,6 +288,10 @@ class TopicQuery
|
|||||||
result = result.where('topics.closed')
|
result = result.where('topics.closed')
|
||||||
when 'archived'
|
when 'archived'
|
||||||
result = result.where('topics.archived')
|
result = result.where('topics.archived')
|
||||||
|
when 'visible'
|
||||||
|
result = result.where('topics.visible')
|
||||||
|
when 'invisible'
|
||||||
|
result = result.where('NOT topics.visible')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user