Because at the moment I need to find some info in an unlisted topic and I don’t know the direct URL.
I had the “query string” Topic Starred, but Stars have been removed so I can’t easily find it. Though @cpradio should know where it is.
to the end of the URL
Yes, they are now “unlisted” but they used to be called “invisible” and AFAIK the query string still uses the old terminology.
Here you go!
Oh good catch we should fix that query string…
OK I changed it here
if status = options[:status] case status when 'open' result = result.where('NOT topics.closed AND NOT topics.archived') when 'closed' result = result.where('topics.closed') when 'archived' result = result.where('topics.archived') when 'listed' result = result.where('topics.visible') when 'unlisted' result = result.where('NOT topics.visible') when 'deleted' guardian = Guardian.new(@user) if guardian.is_staff? result = result.where('topics.deleted_at IS NOT NULL') require_deleted_clause = false end end end
I think that’s the right place @cpradio, let me know if there are others. It’s a hard thing to search for…