X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FHCard.php;h=a6edd5100f5df1cd1b27c00a9d5116ef4956e9c6;hb=d86045058e7f507de9f9583ac03bdbb196d86695;hp=7dabf6c692d4dd8354daf75d4b22b41bbefae346;hpb=489cd0884ade34932fee45f136f77949bb3e3f91;p=friendica.git diff --git a/src/Module/HCard.php b/src/Module/HCard.php index 7dabf6c692..a6edd5100f 100644 --- a/src/Module/HCard.php +++ b/src/Module/HCard.php @@ -1,6 +1,6 @@ getLocalUserId() && ($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')); } @@ -78,7 +77,7 @@ class HCard extends BaseModule $page['htmlhead'] .= "get() . "/dfrn_{$dfrn}/{$nickname}\" />\r\n"; } - $block = (DI::config()->get('system', 'block_public') && !Session::isAuthenticated()); + $block = (DI::config()->get('system', 'block_public') && !DI::userSession()->isAuthenticated()); // check if blocked if ($block) {