From 2b182b2dcfd299a28a5ef020ad539eeef226e519 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Mon, 1 Sep 2014 16:55:16 +0200 Subject: [PATCH] After a new friendica contact is added, the user is directed to the contact page of the new contact. (Instead of the remote profile) --- mod/dfrn_request.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php index 6f6ce61a98..7440c8ab45 100644 --- a/mod/dfrn_request.php +++ b/mod/dfrn_request.php @@ -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 }