]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Media.php
Merge pull request #11452 from atjn/manifest-icons
[friendica.git] / src / Module / Profile / Media.php
index e10597199e8ae82c9adf1e048f1c2267e4b5c06e..f67fcbb4387e08cb1f9a90c90a86f719e419a499 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
  *
@@ -29,11 +29,11 @@ use Friendica\Network\HTTPException;
 
 class Media extends BaseProfile
 {
-       public static function content(array $parameters = [])
+       protected function content(array $request = []): string
        {
                $a = DI::app();
 
-               $profile = ProfileModel::load($a, $parameters['nickname']);
+               $profile = ProfileModel::load($a, $this->parameters['nickname']);
                if (empty($profile)) {
                        throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.'));
                }