diff --git a/lib/topic_query.rb b/lib/topic_query.rb index f7e754338cd..1d3a5304c8f 100644 --- a/lib/topic_query.rb +++ b/lib/topic_query.rb @@ -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