12 lines
368 B
PHP
12 lines
368 B
PHP
|
<?php chdir('../../../../../../') ?>
|
||
|
<?php require 'base.php' ?>
|
||
|
<?php
|
||
|
|
||
|
$id = trim($_GET['id']);
|
||
|
if (!valid_mastodon_account_id($id))
|
||
|
apiresult(['error' => 'id parameter has incorrect format'], 400);
|
||
|
|
||
|
instance_http_post('/api/v1/admin/accounts/'.$id.'/action',['type' => 'suspend']);
|
||
|
$output = instance_http_delete('/api/v1/admin/accounts/'.$id);
|
||
|
apiresult($output);
|