change in/visible search querystring to un/listed

This commit is contained in:
Jeff Atwood 2015-01-12 01:00:45 -08:00
parent dc0ecc8f2c
commit 8e6f7521ec
1 changed files with 2 additions and 2 deletions

View File

@ -318,9 +318,9 @@ class TopicQuery
result = result.where('topics.closed')
when 'archived'
result = result.where('topics.archived')
when 'visible'
when 'listed'
result = result.where('topics.visible')
when 'invisible'
when 'unlisted'
result = result.where('NOT topics.visible')
when 'deleted'
guardian = Guardian.new(@user)