From 5b809328af800e73990e7a056d2a6d883a67bd25 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 5 Jan 2012 13:25:43 -0800 Subject: send diaspora share notification back to originator for auto friending --- include/diaspora.php | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) (limited to 'include/diaspora.php') diff --git a/include/diaspora.php b/include/diaspora.php index f32113668..5a19400da 100644 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -610,6 +610,10 @@ function diaspora_request($importer,$xml) { dbesc(datetime_convert()), intval($contact_record['id']) ); + + $u = q("select * from user where id = %d limit 1",intval($importer['uid'])); + if($u) + $ret = diaspora_share($u[0],$contact_record); } return; @@ -1781,27 +1785,6 @@ function diaspora_profile($importer,$xml) { } - - - - - - - - - - - - - - - - - - - - - function diaspora_share($me,$contact) { $a = get_app(); $myaddr = $me['nickname'] . '@' . substr($a->get_baseurl(), strpos($a->get_baseurl(),'://') + 3); -- cgit v1.2.3