From: Hypolite Petovan Date: Sun, 12 Dec 2021 12:54:18 +0000 (-0500) Subject: Redirect to network page after delegation switch X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f212df79e5f87cfc06bccdc7296fe125ef7798ea;p=friendica.git Redirect to network page after delegation switch - Add a notice with the switched account name --- diff --git a/src/Module/Delegation.php b/src/Module/Delegation.php index bc3c72e8d0..c1cf15759f 100644 --- a/src/Module/Delegation.php +++ b/src/Module/Delegation.php @@ -108,8 +108,9 @@ class Delegation extends BaseModule $ret = []; Hook::callAll('home_init', $ret); - DI::baseUrl()->redirect('profile/' . DI::app()->getLoggedInUserNickname()); - // NOTREACHED + notice($this->t('You are now logged in as %s', $user['username'])); + + DI::baseUrl()->redirect('network'); } protected function content(array $request = []): string