aboutsummaryrefslogtreecommitdiffstats
path: root/include/poller.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-10 19:29:21 -0700
committerFriendika <info@friendika.com>2011-04-10 19:29:21 -0700
commit3d51518a13fd44da3fa9a01b9ae1f1baa5d41848 (patch)
tree70828f278ca87308c2c3718031a53dd0c15b1b2a /include/poller.php
parent63030ca51e9e7f6fbd50aed6b9f6a3cf10084a3f (diff)
downloadvolse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.tar.gz
volse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.tar.bz2
volse-hubzilla-3d51518a13fd44da3fa9a01b9ae1f1baa5d41848.zip
set writable flag on dfrn_poll
Diffstat (limited to 'include/poller.php')
-rw-r--r--include/poller.php11
1 files changed, 8 insertions, 3 deletions
diff --git a/include/poller.php b/include/poller.php
index 9362c28b3..cb2461584 100644
--- a/include/poller.php
+++ b/include/poller.php
@@ -165,11 +165,15 @@ function poller_run($argv, $argc){
if(intval($contact['duplex']) && $contact['dfrn-id'])
$idtosend = '0:' . $orig_id;
if(intval($contact['duplex']) && $contact['issued-id'])
- $idtosend = '1:' . $orig_id;
+ $idtosend = '1:' . $orig_id;
+
+ // they have permission to write to us. We already filtered this in the contact query.
+ $perm = 'rw';
$url = $contact['poll'] . '?dfrn_id=' . $idtosend
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION
- . '&type=data&last_update=' . $last_update ;
+ . '&type=data&last_update=' . $last_update
+ . '&perm=' . $perm ;
$xml = fetch_url($url);
@@ -250,13 +254,14 @@ function poller_run($argv, $argc){
$final_dfrn_id = substr($final_dfrn_id,2);
if($final_dfrn_id != $orig_id) {
-
+ logger('poller: ID did not decode: ' . $contact['id'] . ' orig: ' . $orig_id . ' final: ' . $final_dfrn_id);
// did not decode properly - cannot trust this site
continue;
}
$postvars['dfrn_id'] = $idtosend;
$postvars['dfrn_version'] = DFRN_PROTOCOL_VERSION;
+ $postvars['perm'] = 'rw';
$xml = post_url($contact['poll'],$postvars);
}