FEATURE: Hide deleted posts by default for staff

This commit is contained in:
riking
2014-07-15 14:02:43 -07:00
parent ede8f22971
commit 19b757b058
15 changed files with 172 additions and 46 deletions

View File

@ -35,7 +35,7 @@ class TopicsController < ApplicationController
# existing installs.
return wordpress if params[:best].present?
opts = params.slice(:username_filters, :filter, :page, :post_number)
opts = params.slice(:username_filters, :filter, :page, :post_number, :show_deleted)
username_filters = opts[:username_filters]
opts[:username_filters] = username_filters.split(',') if username_filters.is_a?(String)