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

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