]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/HoverCard.php
Merge pull request #8227 from annando/daemon-checks
[friendica.git] / src / Module / HoverCard.php
index e8570d73d22ba4abd89e30c22d9ca3db1184809d..c2b1d6b46d74d19043705549aa8c0b2547dbc531 100644 (file)
@@ -16,21 +16,19 @@ class HoverCard extends BaseModule
 {
        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();