]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Attach.php
Remove the activity
[friendica.git] / src / Module / Attach.php
index c35e6b9ba393405be0ac94393a1fbbb1483ae3d5..17b2d6e9083ffff62b56bb3577db736a10c61bbd 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -23,6 +23,7 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Core\Logger;
+use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Model\Attach as MAttach;
 
@@ -34,9 +35,8 @@ class Attach extends BaseModule
        /**
         * Return to user an attached file given the id
         */
-       public function rawContent()
+       protected function rawContent(array $request = [])
        {
-               $a = DI::app();
                if (empty($this->parameters['item'])) {
                        throw new \Friendica\Network\HTTPException\BadRequestException();
                }
@@ -72,7 +72,7 @@ class Attach extends BaseModule
                }
 
                echo $data;
-               exit();
+               System::exit();
                // NOTREACHED
        }
 }