mirror of
https://github.com/friendica/friendica
synced 2025-04-26 06:30:11 +00:00
Use router constants
This commit is contained in:
parent
c9eca1edeb
commit
432206bc5b
5 changed files with 16 additions and 11 deletions
|
@ -21,6 +21,7 @@
|
|||
|
||||
namespace Friendica\Module\Api\Mastodon\Lists;
|
||||
|
||||
use Friendica\App\Router;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
|
@ -35,12 +36,12 @@ class Accounts extends BaseApi
|
|||
{
|
||||
public static function delete(array $parameters = [])
|
||||
{
|
||||
self::unsupported('delete');
|
||||
self::unsupported(Router::DELETE);
|
||||
}
|
||||
|
||||
public static function post(array $parameters = [])
|
||||
{
|
||||
self::unsupported('post');
|
||||
self::unsupported(Router::POST);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -74,7 +75,7 @@ class Accounts extends BaseApi
|
|||
if ($request['limit'] != 0) {
|
||||
$params['limit'] = min($request['limit'], 40);
|
||||
}
|
||||
|
||||
|
||||
$condition = ['gid' => $id];
|
||||
|
||||
if (!empty($request['max_id'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue