]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Attach.php
Merge pull request #7044 from MrPetovan/task/router
[friendica.git] / src / Module / Attach.php
index eed1275c58cbb52d2729ebae171c7565831189a7..24e0edc5552ad774d7187573249835acd31474b7 100644 (file)
@@ -8,8 +8,8 @@ namespace Friendica\Module;
 
 use Friendica\BaseModule;
 use Friendica\Core\L10n;
-use Friendica\Core\System;
 use Friendica\Core\Logger;
+use Friendica\Core\System;
 use Friendica\Model\Attach as MAttach;
 
 /**
@@ -18,18 +18,16 @@ use Friendica\Model\Attach as MAttach;
 class Attach extends BaseModule
 {
        /**
-        * @brief Module initializer
-        *
-        * Fetch an attached file given the id
+        * @brief Return to user an attached file given the id
         */
-       public static function init()
+       public static function rawContent()
        {
                $a = self::getApp();
                if ($a->argc != 2) {
                        System::httpExit(400); // Bad Request.
                }
-       
 
+               // @TODO: Replace with parameter from router
                $item_id = intval($a->argv[1]);
                
                // Check for existence
@@ -64,4 +62,4 @@ class Attach extends BaseModule
                exit();
                // NOTREACHED
        }
-}
\ No newline at end of file
+}