diff options
author | friendica <info@friendica.com> | 2012-01-05 13:25:43 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-05 13:25:43 -0800 |
commit | 5b809328af800e73990e7a056d2a6d883a67bd25 (patch) | |
tree | c4720eeaaf960ee39fc813a0a6dc102b6bad4e26 /include/diaspora.php | |
parent | 2f73be326ea518b5521f5b52c9ca9c080cff47a7 (diff) | |
download | volse-hubzilla-5b809328af800e73990e7a056d2a6d883a67bd25.tar.gz volse-hubzilla-5b809328af800e73990e7a056d2a6d883a67bd25.tar.bz2 volse-hubzilla-5b809328af800e73990e7a056d2a6d883a67bd25.zip |
send diaspora share notification back to originator for auto friending
Diffstat (limited to 'include/diaspora.php')
-rw-r--r-- | include/diaspora.php | 25 |
1 files changed, 4 insertions, 21 deletions
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); |