]> 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 d4d53184fc5e7a587e2a6cfb626917d46f20f627..c2b1d6b46d74d19043705549aa8c0b2547dbc531 100644 (file)
@@ -2,12 +2,7 @@
 
 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;
@@ -21,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();