From 033935c19406c8468ed75fdd15a3a532f4e25319 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 12 Oct 2010 20:29:04 -0700 Subject: cleanup to ensure protocol version is passed properly. We will need it if/when any incompatible protocol changes are introduced. --- include/items.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/items.php') diff --git a/include/items.php b/include/items.php index ab2fd644a..7958c78c3 100644 --- a/include/items.php +++ b/include/items.php @@ -517,10 +517,10 @@ function dfrn_deliver($contact,$atom,$debugging = false) { if($contact['duplex'] && $contact['issued-id']) $idtosend = '1:' . $orig_id; - $url = $contact['notify'] . '?dfrn_id=' . $idtosend; + $url = $contact['notify'] . '?dfrn_id=' . $idtosend . '&dfrn_version=' . DFRN_PROTOCOL_VERSION ; if($debugging) - echo "URL: $url"; + echo "URL: $url\n"; $xml = fetch_url($url); @@ -560,8 +560,8 @@ function dfrn_deliver($contact,$atom,$debugging = false) { return 3; } - $postvars['dfrn_id'] = $idtosend; - + $postvars['dfrn_id'] = $idtosend; + $postvars['dfrn_version'] = DFRN_PROTOCOL_VERSION; if(($contact['rel']) && ($contact['rel'] != REL_FAN) && (! $contact['blocked']) && (! $contact['readonly'])) { $postvars['data'] = $atom; -- cgit v1.2.3