mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-10 09:04:26 +02:00
Transform ApiResponse::exit() into dynamic method
This commit is contained in:
parent
4309f814e0
commit
ea0f41ecf0
13 changed files with 27 additions and 30 deletions
|
@ -23,7 +23,6 @@ namespace Friendica\Module\Api\Friendica;
|
|||
|
||||
use Friendica\Collection\Api\Notifications as ApiNotifications;
|
||||
use Friendica\DI;
|
||||
use Friendica\Module\Api\ApiResponse;
|
||||
use Friendica\Module\BaseApi;
|
||||
use Friendica\Object\Api\Friendica\Notification as ApiNotification;
|
||||
|
||||
|
@ -57,6 +56,6 @@ class Notification extends BaseApi
|
|||
$result = false;
|
||||
}
|
||||
|
||||
ApiResponse::exit('notes', ['note' => $result], $parameters['extension'] ?? null);
|
||||
DI::apiResponse()->exit('notes', ['note' => $result], $parameters['extension'] ?? null);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue