From b376f215337e4bee7320a0df8fc3d9b1beb2f289 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 31 Oct 2010 20:36:59 -0700 Subject: notify folks who have been tagged in a post --- include/items.php | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index 951e5c6e3..d37f7708f 100644 --- a/include/items.php +++ b/include/items.php @@ -587,7 +587,7 @@ function get_item_contact($item,$contacts) { } -function dfrn_deliver($owner,$contact,$atom,$debugging = false) { +function dfrn_deliver($owner,$contact,$atom) { if((! strlen($contact['dfrn-id'])) && (! $contact['duplex']) && (! ($owner['page-flags'] == PAGE_COMMUNITY))) @@ -602,13 +602,11 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) { $url = $contact['notify'] . '?dfrn_id=' . $idtosend . '&dfrn_version=' . DFRN_PROTOCOL_VERSION ; - if($debugging) - echo "URL: $url\n"; + logger('dfrn_deliver: ' . $url); $xml = fetch_url($url); - if($debugging) - echo $xml; + logger('dfrn_deliver: ' . $xml); if(! $xml) return 3; @@ -641,8 +639,7 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) { $final_dfrn_id = substr($final_dfrn_id,2); if($final_dfrn_id != $orig_id) { - if($debugging) - echo "Wrong ID - did not decode\n"; + logger('dfrn_deliver: wrong dfrn_id.'); // did not decode properly - cannot trust this site return 3; } @@ -662,10 +659,7 @@ function dfrn_deliver($owner,$contact,$atom,$debugging = false) { $xml = post_url($contact['notify'],$postvars); - if($debugging) { - echo "SENDING: " . print_r($postvars,true) . "\n"; - echo "RECEIVING: " . $xml; - } + logger('dfrn_deliver: ' . "SENDING: " . print_r($postvars,true) . "\n" . "RECEIVING: " . $xml); $res = simplexml_load_string($xml); -- cgit v1.2.3