]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Profile/Media.php
Merge pull request #10987 from annando/api4
[friendica.git] / src / Module / Profile / Media.php
index e10597199e8ae82c9adf1e048f1c2267e4b5c06e..74af5f95e28715a0451fbfc1bec430b525b5627e 100644 (file)
@@ -29,11 +29,11 @@ use Friendica\Network\HTTPException;
 
 class Media extends BaseProfile
 {
-       public static function content(array $parameters = [])
+       public function content(): 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.'));
                }