<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use Friendica\Core\Renderer;
use Friendica\DI;
use Friendica\Module\BaseApi;
+use Friendica\Module\Special\HTTPException;
+use Psr\Http\Message\ResponseInterface;
/**
* Acknowledgement of OAuth requests
*/
class Acknowledge extends BaseApi
{
- public static function post()
+ public function run(HTTPException $httpException, array $request = [], bool $scopecheck = true): ResponseInterface
+ {
+ return parent::run($httpException, $request, false);
+ }
+
+ protected function post(array $request = [])
{
DI::session()->set('oauth_acknowledge', true);
DI::app()->redirect(DI::session()->get('return_path'));
}
- public static function content()
+ protected function content(array $request = []): string
{
DI::session()->set('return_path', $_REQUEST['return_path'] ?? '');