]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/HCard.php
Merge pull request #11069 from nupplaphil/feat/reenable_tests
[friendica.git] / src / Module / HCard.php
index 269deff0682491b7a9ea702dcd31dcf8784ae5e9..12ea65f136fb2c16432100616575c83113f4cc73 100644 (file)
@@ -34,14 +34,14 @@ use Friendica\Network\HTTPException;
  */
 class HCard extends BaseModule
 {
-       public static function content()
+       protected function content(array $request = []): string
        {
-               if ((local_user()) && (static::$parameters['action'] ?? '') === 'view') {
+               if ((local_user()) && ($this->parameters['action'] ?? '') === 'view') {
                        // A logged in user views a profile of a user
                        $nickname = DI::app()->getLoggedInUserNickname();
-               } elseif (empty(static::$parameters['action'])) {
+               } elseif (empty($this->parameters['action'])) {
                        // Show the profile hCard
-                       $nickname = static::$parameters['profile'];
+                       $nickname = $this->parameters['profile'];
                } else {
                        throw new HTTPException\NotFoundException(DI::l10n()->t('No profile'));
                }