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;
/**
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
exit();
// NOTREACHED
}
-}
\ No newline at end of file
+}