Commit 9ec31ad8 authored by friendica's avatar friendica

get rid of post_url() in addons

parent 66701381
No preview for this file type
......@@ -220,8 +220,8 @@ EOT;
logger('dwpost: data: ' . $xml, LOGGER_DATA);
if($dw_blog !== 'test')
$x = post_url($dw_blog,$xml,array("Content-Type: text/xml"));
logger('posted to dreamwidth: ' . ($x) ? $x : '', LOGGER_DEBUG);
$x = z_post_url($dw_blog,$xml,array('headers' => array("Content-Type: text/xml")));
logger('posted to dreamwidth: ' . print_r($x,true), LOGGER_DEBUG);
}
}
......
No preview for this file type
......@@ -208,7 +208,7 @@ function ijpost_send(&$a,&$b) {
<member><name>ver</name><value><int>1</int></value></member>
<member><name>props</name>
<value><struct>
<member><name>useragent</name><value><string>Friendica</string></value></member>
<member><name>useragent</name><value><string>RedMatrix</string></value></member>
<member><name>taglist</name><value><string>$tags</string></value></member>
</struct></value></member>
</struct></value>
......@@ -220,8 +220,8 @@ EOT;
logger('ijpost: data: ' . $xml, LOGGER_DATA);
if($ij_blog !== 'test')
$x = post_url($ij_blog,$xml,array("Content-Type: text/xml"));
logger('posted to insanejournal: ' . ($x) ? $x : '', LOGGER_DEBUG);
$x = z_post_url($ij_blog,$xml,array('headers' => array("Content-Type: text/xml")));
logger('posted to insanejournal: ' . print_r($x,true), LOGGER_DEBUG);
}
}
......
No preview for this file type
......@@ -208,8 +208,8 @@ function libertree_send(&$a,&$b) {
// 'token' => $ltree_api_token
);
$result = post_url($ltree_blog,$params);
logger('libertree: ' . $result);
$result = z_post_url($ltree_blog,$params);
logger('libertree: ' . print_r($result,true));
}
}
......
No preview for this file type
......@@ -218,7 +218,7 @@ function ljpost_send(&$a,&$b) {
<struct>
<member>
<name>useragent</name>
<value><string>Friendica</string></value>
<value><string>RedMatrix</string></value>
</member>
<member>
<name>taglist</name>
......@@ -237,8 +237,8 @@ EOT;
logger('ljpost: data: ' . $xml, LOGGER_DATA);
if($lj_blog !== 'test')
$x = post_url($lj_blog,$xml,array("Content-Type: text/xml"));
logger('posted to livejournal: ' . ($x) ? $x : '', LOGGER_DEBUG);
$x = z_post_url($lj_blog,$xml,array('headers' => array("Content-Type: text/xml")));
logger('posted to livejournal: ' . print_r($x,true), LOGGER_DEBUG);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment