Prevent admins and moderators eavesdropping in private and direct toots (#7067)

Fix #6986
lolsob-rspec
Alda Marteau-Hardi 2018-04-07 21:33:01 +02:00 committed by Eugen Rochko
parent 608b4096ea
commit 17f77e51f2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ module Admin
def index
authorize :status, :index?
@statuses = @account.statuses
@statuses = @account.statuses.where(visibility: [:public, :unlisted])
if params[:media]
account_media_status_ids = @account.media_attachments.attached.reorder(nil).select(:status_id).distinct