diff --git a/api/v1/http/mastodon/accounts/suspend/mod.php b/api/v1/http/mastodon/accounts/suspend/mod.php index 1fe6b67..822b341 100644 --- a/api/v1/http/mastodon/accounts/suspend/mod.php +++ b/api/v1/http/mastodon/accounts/suspend/mod.php @@ -9,9 +9,9 @@ $_ = function() { if (isset($_POST['explain'])) $explain = trim($_POST['explain']); - instance_http_post('/api/v1/admin/accounts/'.$id.'/action', + $output = instance_http_post('/api/v1/admin/accounts/'.$id.'/action', ['type' => 'suspend', 'text' => $explain ]); - $output = instance_http_delete('/api/v1/admin/accounts/'.$id); + #$output = instance_http_delete('/api/v1/admin/accounts/'.$id); return apiresult($output); }; $_();