From 55679a6021cfd0cda286571ad0110f145705ab92 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 16 Jan 2022 20:54:14 +0000 Subject: [PATCH] Possibly fixing one test --- src/Module/Api/Friendica/Group/Show.php | 1 + src/Module/Api/Twitter/DirectMessages/Destroy.php | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Module/Api/Friendica/Group/Show.php b/src/Module/Api/Friendica/Group/Show.php index 8a479930d..d15082769 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 ed0b1ed29..9de098236 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);