X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FDelegation.php;h=c14573c8b330c9a76e55384ac6e31d6e44938aa1;hb=69b7923df2beed71419bc38e61ca9755fad24b12;hp=affe5e7b8fa8209f0745801bb5355ad66cdef3a1;hpb=3d97149007872d69ca43ec955137b887d95239cf;p=friendica.git diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index affe5e7b8f..c14573c8b3 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -1,6 +1,6 @@ redirect('profile/' . DI::app()->getLoggedInUserNickname()); - // NOTREACHED + notice($this->t('You are now logged in as %s', $user['username'])); + + DI::baseUrl()->redirect('network'); } - public static function content(array $parameters = []) + protected function content(array $request = []): string { if (!local_user()) { throw new ForbiddenException(DI::l10n()->t('Permission denied.')); @@ -133,7 +134,7 @@ class Delegation extends BaseModule $params = ['distinct' => true, 'expression' => 'convid']; $notifications += DBA::count('mail', ['uid' => $identity['uid'], 'seen' => false], $params); - $notifications += DBA::count('intro', ['blocked' => false, 'ignore' => false, 'uid' => $identity['uid']]); + $notifications += DI::intro()->countActiveForUser($identity['uid']); $identities[$key]['notifications'] = $notifications; }