. * */ namespace Friendica\Module\Profile; use Friendica\DI; use Friendica\Model\Contact; use Friendica\Model\Profile as ProfileModel; use Friendica\Module\BaseProfile; use Friendica\Network\HTTPException; class Media extends BaseProfile { protected function content(array $request = []): string { $a = DI::app(); $profile = ProfileModel::load($a, $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'], false, 0, 0, true); return $o; } }