|
|
|
@ -59,18 +59,13 @@ class Api::V1::Admin::DomainBlocksController < Api::BaseController
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_domain_blocks
|
|
|
|
|
@domain_blocks = filtered_domain_blocks.order(id: :desc).to_a_paginated_by_id(limit_param(LIMIT), params_slice(:max_id, :since_id, :min_id))
|
|
|
|
|
@domain_blocks = DomainBlock.order(id: :desc).to_a_paginated_by_id(limit_param(LIMIT), params_slice(:max_id, :since_id, :min_id))
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def set_domain_block
|
|
|
|
|
@domain_block = DomainBlock.find(params[:id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def filtered_domain_blocks
|
|
|
|
|
# TODO: no filtering yet
|
|
|
|
|
DomainBlock.all
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def domain_block_params
|
|
|
|
|
params.permit(:severity, :reject_media, :reject_reports, :private_comment, :public_comment, :obfuscate)
|
|
|
|
|
end
|
|
|
|
|