]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Attach.php
Changes:
[friendica.git] / src / Module / Attach.php
index a73beb2b8dd03585c1e4c498a196bf0a2ccbb2a0..7d877c12655b0a11efa78413a0debaadc1e8d93c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -37,7 +37,6 @@ class Attach extends BaseModule
         */
        protected function rawContent(array $request = [])
        {
-               $a = DI::app();
                if (empty($this->parameters['item'])) {
                        throw new \Friendica\Network\HTTPException\BadRequestException();
                }
@@ -50,7 +49,7 @@ class Attach extends BaseModule
                        throw new \Friendica\Network\HTTPException\NotFoundException(DI::l10n()->t('Item was not found.'));
                }
 
-               // Now we'll fetch the item, if we have enough permisson
+               // Now we'll fetch the item, if we have enough permission
                $item = MAttach::getByIdWithPermission($item_id);
                if ($item === false) {
                        throw new \Friendica\Network\HTTPException\ForbiddenException(DI::l10n()->t('Permission denied.'));