API: List handling, dummy endpoints

This commit is contained in:
Michael 2021-05-13 21:15:32 +00:00
parent 1d44b97576
commit 3aa883f1e3
12 changed files with 405 additions and 69 deletions

View file

@ -85,6 +85,6 @@ class Authorize extends BaseApi
DI::mstdnError()->UnprocessableEntity();
}
DI::app()->redirect($application['redirect_uri'] . '?' . http_build_query(['code' => $token['code'], 'state' => $state]));
DI::app()->redirect($application['redirect_uri'] . (strpos($application['redirect_uri'], '?') ? '&' : '?') . http_build_query(['code' => $token['code'], 'state' => $state]));
}
}