aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-31 20:36:59 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-31 20:36:59 -0700
commitb376f215337e4bee7320a0df8fc3d9b1beb2f289 (patch)
tree64db391a0605c512a8332eeba70e3b9b13934398 /include/items.php
parentb919a1e35ac404a929ec7f9ecec497abcda0279b (diff)
downloadvolse-hubzilla-b376f215337e4bee7320a0df8fc3d9b1beb2f289.tar.gz
volse-hubzilla-b376f215337e4bee7320a0df8fc3d9b1beb2f289.tar.bz2
volse-hubzilla-b376f215337e4bee7320a0df8fc3d9b1beb2f289.zip
notify folks who have been tagged in a post
Diffstat (limited to 'include/items.php')
-rw-r--r--include/items.php16
1 files changed, 5 insertions, 11 deletions
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);