From: Michael Date: Sun, 16 Jan 2022 20:54:14 +0000 (+0000) Subject: Possibly fixing one test X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=55679a6021cfd0cda286571ad0110f145705ab92;p=friendica.git Possibly fixing one test --- diff --git a/src/Module/Api/Friendica/Group/Show.php b/src/Module/Api/Friendica/Group/Show.php index 8a479930d5..d150827694 100644 --- a/src/Module/Api/Friendica/Group/Show.php +++ b/src/Module/Api/Friendica/Group/Show.php @@ -22,6 +22,7 @@ namespace Friendica\Module\Api\Friendica\Group; use Friendica\Database\DBA; +use Friendica\DI; use Friendica\Model\Contact; use Friendica\Module\BaseApi; use Friendica\Network\HTTPException; diff --git a/src/Module/Api/Twitter/DirectMessages/Destroy.php b/src/Module/Api/Twitter/DirectMessages/Destroy.php index ed0b1ed29e..9de0982364 100644 --- a/src/Module/Api/Twitter/DirectMessages/Destroy.php +++ b/src/Module/Api/Twitter/DirectMessages/Destroy.php @@ -54,9 +54,6 @@ class Destroy extends BaseApi $id = $this->getRequestValue($request, 'id', 0); $id = $this->getRequestValue($this->parameters, 'id', $id); - if (empty($id)) { - throw new BadRequestException('Message id not specified'); - } $verbose = $this->getRequestValue($request, 'friendica_verbose', false);