mirror of
https://github.com/friendica/friendica
synced 2025-04-19 13:50:15 +00:00
Use X-REQUEST-ID for Error pages
This commit is contained in:
parent
5584e7a4e5
commit
4f1bb0d274
55 changed files with 218 additions and 130 deletions
|
@ -33,6 +33,7 @@ use Friendica\Model\Item;
|
|||
use Friendica\Model\Post;
|
||||
use Friendica\Model\User;
|
||||
use Friendica\Module\Api\ApiResponse;
|
||||
use Friendica\Module\Special\HTTPException as ModuleHTTPException;
|
||||
use Friendica\Network\HTTPException;
|
||||
use Friendica\Security\BasicAuth;
|
||||
use Friendica\Security\OAuth;
|
||||
|
@ -80,7 +81,7 @@ class BaseApi extends BaseModule
|
|||
*
|
||||
* @throws HTTPException\ForbiddenException
|
||||
*/
|
||||
public function run(array $request = [], bool $scopecheck = true): ResponseInterface
|
||||
public function run(ModuleHTTPException $httpException, array $request = [], bool $scopecheck = true): ResponseInterface
|
||||
{
|
||||
if ($scopecheck) {
|
||||
switch ($this->args->getMethod()) {
|
||||
|
@ -97,7 +98,7 @@ class BaseApi extends BaseModule
|
|||
}
|
||||
}
|
||||
|
||||
return parent::run($request);
|
||||
return parent::run($httpException, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue