appHelper = $appHelper; $this->userSession = $userSession; } protected function content(array $request = []): string { $profile = ProfileModel::load($this->appHelper, $this->parameters['nickname']); if (empty($profile)) { throw new HTTPException\NotFoundException(DI::l10n()->t('User not found.')); } if (!$profile['net-publish']) { DI::page()['htmlhead'] .= '' . "\n"; } $is_owner = DI::userSession()->getLocalUserId() == $profile['uid']; $o = self::getTabsHTML('media', $is_owner, $profile['nickname'], $profile['hide-friends']); $o .= Contact::getPostsFromUrl($profile['url'], $this->userSession->getLocalUserId(), true, $request['last_created'] ?? ''); return $o; } }