mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
send diaspora share notification back to originator for auto friending
This commit is contained in:
parent
2f73be326e
commit
5b809328af
3 changed files with 6 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue