]> git.mxchange.org Git - friendica.git/commitdiff
Possibly fixing one test
authorMichael <heluecht@pirati.ca>
Sun, 16 Jan 2022 20:54:14 +0000 (20:54 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 16 Jan 2022 20:54:14 +0000 (20:54 +0000)
src/Module/Api/Friendica/Group/Show.php
src/Module/Api/Twitter/DirectMessages/Destroy.php

index 8a479930d5756bb097dc39efc2581e484aa34496..d150827694b5a33b10c8607b1ded3c7e79f4ad0f 100644 (file)
@@ -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;
index ed0b1ed29e96edfcc8850c8daf507207df617659..9de09823640b79300d44096ddd6f9fdd5eaefecc 100644 (file)
@@ -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);