mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-17 04:15:15 +02:00
cleanup to ensure protocol version is passed properly. We will need it if/when any incompatible protocol changes are introduced.
This commit is contained in:
parent
3c440f70c6
commit
033935c194
6 changed files with 44 additions and 22 deletions
|
@ -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;
|
||||
|
|
|
@ -94,12 +94,15 @@
|
|||
if(intval($contact['duplex']) && $contact['issued-id'])
|
||||
$idtosend = '1:' . $orig_id;
|
||||
|
||||
$url = $contact['poll'] . '?dfrn_id=' . $idtosend . '&type=data&last_update=' . $last_update ;
|
||||
$url = $contact['poll'] . '?dfrn_id=' . $idtosend
|
||||
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION
|
||||
. '&type=data&last_update=' . $last_update ;
|
||||
|
||||
$xml = fetch_url($url);
|
||||
|
||||
if($debugging) {
|
||||
echo "URL: " . $url . "\r\n";
|
||||
echo "XML: " . $xml . "\r\n";
|
||||
echo "URL: " . $url . "\n";
|
||||
echo "XML: " . $xml . "\n";
|
||||
}
|
||||
|
||||
if(! $xml) {
|
||||
|
@ -154,7 +157,7 @@
|
|||
}
|
||||
|
||||
$postvars['dfrn_id'] = $idtosend;
|
||||
|
||||
$postvars['dfrn_version'] = DFRN_PROTOCOL_VERSION;
|
||||
|
||||
$xml = post_url($contact['poll'],$postvars);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue