soselo/api/v1/http/mastodon/accounts/reject/index.php

11 lines
293 B
PHP
Raw Permalink Normal View History

<?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);
$output = instance_http_post('/api/v1/admin/accounts/'.$id.'/reject');
apiresult($output);