namespace Friendica\Module;
-use Friendica\App\Arguments;
-use Friendica\App\BaseURL;
-use Friendica\App\Page;
use Friendica\BaseModule;
-use Friendica\Core\Config\Configuration;
-use Friendica\Core\L10n\L10n;
use Friendica\Core\Session;
use Friendica\DI;
use Friendica\Model\Profile;
{
public static function rawContent(array $parameters = [])
{
- $a = self::getApp();
+ $a = DI::app();
if ((local_user()) && ($parameters['action'] ?? '') === 'view') {
// A logged in user views a profile of a user
$nickname = $a->user['nickname'];
- $profile = $parameters['profile'];
} elseif (empty($parameters['action'])) {
// Show the profile hovercard
$nickname = $parameters['profile'];
- $profile = 0;
} else {
throw new NotFoundException(DI::l10n()->t('No profile'));
}
- Profile::load($a, $nickname, $profile);
+ Profile::load($a, $nickname);
$page = DI::page();