]> git.mxchange.org Git - friendica.git/commitdiff
After a new friendica contact is added, the user is directed to the contact page...
authorMichael Vogel <icarus@dabo.de>
Mon, 1 Sep 2014 14:55:16 +0000 (16:55 +0200)
committerMichael Vogel <icarus@dabo.de>
Mon, 1 Sep 2014 14:55:16 +0000 (16:55 +0200)
mod/dfrn_request.php

index 6f6ce61a987fb6238a60b4d363e64919f764974f..7440c8ab45bd7f74666cfc8b44b835c65ac0dda4 100644 (file)
@@ -183,7 +183,9 @@ function dfrn_request_post(&$a) {
                                                require_once('include/group.php');
                                                group_add_member(local_user(),'',$r[0]['id'],$g[0]['def_gid']);
                                        }
-                               }
+                                       $forwardurl = $a->get_baseurl()."/contacts/".$r[0]['id'];
+                               } else
+                                       $forwardurl = $a->get_baseurl()."/contacts";
 
                                /**
                                 * Allow the blocked remote notification to complete
@@ -197,7 +199,8 @@ function dfrn_request_post(&$a) {
 
                                // (ignore reply, nothing we can do it failed)
 
-                               goaway(zrl($dfrn_url));
+                               // Old: goaway(zrl($dfrn_url));
+                               goaway($forwardurl);
                                return; // NOTREACHED
 
                        }