]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Lists/Accounts.php
Move API Response methods into an own class to make them mockable
[friendica.git] / src / Module / Api / Mastodon / Lists / Accounts.php
index 6e112356303fa2ee7b473cac83fa1f364e423f1f..e1de45b64d837e3598caaf3b18ecda2fc3f2c184 100644 (file)
@@ -25,6 +25,7 @@ use Friendica\App\Router;
 use Friendica\Core\System;
 use Friendica\Database\DBA;
 use Friendica\DI;
+use Friendica\Module\Api\ApiResponse;
 use Friendica\Module\BaseApi;
 
 /**
@@ -36,12 +37,12 @@ class Accounts extends BaseApi
 {
        public static function delete(array $parameters = [])
        {
-               self::unsupported(Router::DELETE);
+               ApiResponse::unsupported(Router::DELETE);
        }
 
        public static function post(array $parameters = [])
        {
-               self::unsupported(Router::POST);
+               ApiResponse::unsupported(Router::POST);
        }
 
        /**