Is there a way for an admin to see all unlisted topics?


(Stefan) #1

Because at the moment I need to find some info in an unlisted topic and I don’t know the direct URL.


(Mittineague) #2

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.

Try adding
?status=invisible
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.


(cpradio) #3

Here you go!


(Jeff Atwood) #4

Oh good catch we should fix that query string…


(Jeff Atwood) #5

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…


(cpradio) #6

@codinghorror, yes, that worked (just finished testing it). :smile: