Commit b65eb00c authored by Alda Marteau-Hardi's avatar Alda Marteau-Hardi Committed by Eugen Rochko
Browse files

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

Fix #6986
parent b5726def
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment