Commit ebcdc507 authored by friendica's avatar friendica

synchronise deletion of comments between red and wp

parent 1c6818f2
No preview for this file type
......@@ -396,7 +396,10 @@ function wppost_drop_item(&$a,&$b) {
$client = new IXR_Client($wp_blog);
$res = $client->query('wp.deletePost',1,$wp_username,$wp_password,$post_id);
if($b['item']['id'] == $b['item']['parent'])
$res = $client->query('wp.deletePost',1,$wp_username,$wp_password,$post_id);
else
$res = $client->query('wp.deleteComment',1,$wp_username,$wp_password,$post_id);
if(! $res) {
logger('wppost: delete failed.');
......
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