From 1485538434db3387b80c16325d47fc2675974e3b Mon Sep 17 00:00:00 2001 From: cpradio Date: Thu, 11 Sep 2014 19:21:25 -0400 Subject: [PATCH] FEATURE: Add querystring value for Invisible Allow advanced functionality to only show invisible topics on the latest, unread, new pages. --- lib/topic_query.rb | 2 ++ 1 file changed, 2 insertions(+) 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