add diaspora support to dfrn_confirm (friendship confirmation)
This commit is contained in:
parent
1b8adf0f12
commit
fcf6651299
|
@ -124,6 +124,8 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
$aes_allow = $contact['aes_allow'];
|
$aes_allow = $contact['aes_allow'];
|
||||||
|
|
||||||
$network = ((strlen($contact['issued-id'])) ? 'dfrn' : 'stat');
|
$network = ((strlen($contact['issued-id'])) ? 'dfrn' : 'stat');
|
||||||
|
if($contact['network'])
|
||||||
|
$network = $contact['network'];
|
||||||
|
|
||||||
if($network === 'dfrn') {
|
if($network === 'dfrn') {
|
||||||
|
|
||||||
|
@ -339,9 +341,10 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
else {
|
else {
|
||||||
// $network !== 'dfrn'
|
// $network !== 'dfrn'
|
||||||
|
|
||||||
$notify = '';
|
$notify = (($contact['notify']) ? $contact['notify'] : '');
|
||||||
$poll = '';
|
$poll = (($contact['poll']) ? $contact['poll'] : '');
|
||||||
|
|
||||||
|
if((! $contact['notify']) || (! $contact['poll'])) {
|
||||||
$arr = lrdd($contact['url']);
|
$arr = lrdd($contact['url']);
|
||||||
if(count($arr)) {
|
if(count($arr)) {
|
||||||
foreach($arr as $link) {
|
foreach($arr as $link) {
|
||||||
|
@ -351,6 +354,7 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
|
||||||
$poll = $link['@attributes']['href'];
|
$poll = $link['@attributes']['href'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$r = q("DELETE FROM `intro` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
$r = q("DELETE FROM `intro` WHERE `id` = %d AND `uid` = %d LIMIT 1",
|
||||||
intval($intro_id),
|
intval($intro_id),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user