From 080bfcf852cbb96f08b7dea7ab7bf72086d14dbb Mon Sep 17 00:00:00 2001 From: Bofh Date: Fri, 9 Dec 2022 23:30:47 +0100 Subject: [PATCH] Sleep 3 seconds after deleting account, to throttle account suspension --- api/v1/http/mastodon/accounts/suspend/mod.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/v1/http/mastodon/accounts/suspend/mod.php b/api/v1/http/mastodon/accounts/suspend/mod.php index 822b341..07b8f5d 100644 --- a/api/v1/http/mastodon/accounts/suspend/mod.php +++ b/api/v1/http/mastodon/accounts/suspend/mod.php @@ -12,6 +12,7 @@ $_ = function() { $output = instance_http_post('/api/v1/admin/accounts/'.$id.'/action', ['type' => 'suspend', 'text' => $explain ]); #$output = instance_http_delete('/api/v1/admin/accounts/'.$id); + sleep(3); return apiresult($output); }; $_();