From dfda41567c6b0a2767966547506e7e0de6017cf7 Mon Sep 17 00:00:00 2001 From: cpradio Date: Thu, 11 Sep 2014 19:17:16 -0400 Subject: [PATCH] FEATURE: Add querystring value for Visible Allow advanced functionality to only show visible 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 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