mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 17:14:26 +02:00
API: Accept "redirect_uris" as both array and string
This commit is contained in:
parent
25ac99a098
commit
af2a38c5b3
3 changed files with 13 additions and 6 deletions
|
@ -70,10 +70,9 @@ class Error extends BaseFactory
|
|||
System::jsonError(422, $errorObj->toArray());
|
||||
}
|
||||
|
||||
public function Unauthorized(string $error = '')
|
||||
public function Unauthorized(string $error = '', string $error_description = '')
|
||||
{
|
||||
$error = $error ?: $this->l10n->t('Unauthorized');
|
||||
$error_description = '';
|
||||
$errorObj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description);
|
||||
|
||||
$this->logError(401, $error);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue