]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/FollowConfirm.php
Use DI::baseUrl() for Search\Index.php
[friendica.git] / src / Module / FollowConfirm.php
index a19f12737610233ea9a4967da557142f71d23c42..e54032c85094ea71fa779074d19eba9e68728e0d 100644 (file)
@@ -13,8 +13,6 @@ class FollowConfirm extends BaseModule
 {
        public static function post(array $parameters = [])
        {
-               $a = DI::app();
-
                $uid = local_user();
                if (!$uid) {
                        notice(L10n::t('Permission denied.') . EOL);
@@ -25,14 +23,12 @@ class FollowConfirm extends BaseModule
                $duplex   = intval($_POST['duplex']     ?? 0);
                $hidden   = intval($_POST['hidden']     ?? 0);
 
-               /** @var Introduction $Intro */
-               $Intro = self::getClass(Introduction::class);
-               $Intro->fetch(['id' => $intro_id, 'uid' => local_user()]);
+               $Intro = DI::intro()->fetch(['id' => $intro_id, 'uid' => local_user()]);
 
                $cid = $Intro->{'contact-id'};
 
                $Intro->confirm($duplex, $hidden);
 
-               $a->internalRedirect('contact/' . intval($cid));
+               DI::baseUrl()->redirect('contact/' . intval($cid));
        }
 }