]> git.mxchange.org Git - friendica.git/commitdiff
Redirect to network page after delegation switch
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 12 Dec 2021 12:54:18 +0000 (07:54 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 12 Dec 2021 13:15:15 +0000 (08:15 -0500)
- Add a notice with the switched account name

src/Module/Delegation.php

index bc3c72e8d008c8b9d248fe9ed4868219930a5dcb..c1cf15759f12e50ccf5cec9270436a6ac52cde87 100644 (file)
@@ -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