]> git.mxchange.org Git - friendica.git/commitdiff
Issue 10841: Redirect always to the same page
authorMichael <heluecht@pirati.ca>
Wed, 6 Oct 2021 19:02:26 +0000 (19:02 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 Oct 2021 19:02:26 +0000 (19:02 +0000)
src/Module/Contact.php

index 4aebc4c93acf9d84435ed11be9d2dfbbd3d141f4..c3075febedb7523d6127032bffb3d57c21fe29f9 100644 (file)
@@ -360,13 +360,13 @@ class Contact extends BaseModule
 
                        if ($cmd === 'update' && $cdata['user']) {
                                self::updateContactFromPoll($cdata['user']);
-                               DI::baseUrl()->redirect('contact/' . $cdata['public']);
+                               DI::baseUrl()->redirect('contact/' . $contact_id);
                                // NOTREACHED
                        }
 
                        if ($cmd === 'updateprofile' && $cdata['user']) {
                                self::updateContactFromProbe($cdata['user']);
-                               DI::baseUrl()->redirect('contact/' . $cdata['public']);
+                               DI::baseUrl()->redirect('contact/' . $contact_id);
                                // NOTREACHED
                        }
 
@@ -380,7 +380,7 @@ class Contact extends BaseModule
                                $blocked = Model\Contact\User::isBlocked($contact_id, local_user());
                                info(($blocked ? DI::l10n()->t('Contact has been blocked') : DI::l10n()->t('Contact has been unblocked')));
 
-                               DI::baseUrl()->redirect('contact/' . $cdata['public']);
+                               DI::baseUrl()->redirect('contact/' . $contact_id);
                                // NOTREACHED
                        }
 
@@ -394,7 +394,7 @@ class Contact extends BaseModule
                                $ignored = Model\Contact\User::isIgnored($cdata['public'], local_user());
                                info(($ignored ? DI::l10n()->t('Contact has been ignored') : DI::l10n()->t('Contact has been unignored')));
 
-                               DI::baseUrl()->redirect('contact/' . $cdata['public']);
+                               DI::baseUrl()->redirect('contact/' . $contact_id);
                                // NOTREACHED
                        }
                }