diff --git a/lib/topic_query.rb b/lib/topic_query.rb index 3af501558..e6a168bfe 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -288,6 +288,10 @@ class TopicQuery result = result.where('topics.closed') when 'archived' result = result.where('topics.archived') + when 'visible' + result = result.where('topics.visible') + when 'invisible' + result = result.where('NOT topics.visible') end end