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