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);