synchronise deletion of comments between red and wp

This commit is contained in:
friendica
2013-11-28 00:16:13 -08:00
parent 21e465e48a
commit aab9b30d03
3 changed files with 44 additions and 1 deletions

View File

@@ -1101,6 +1101,16 @@ require_once('include/photos.php');
return false;
$id = $r[0]['iid'];
}
if($_REQUEST['namespace'] && $_REQUEST['comment_id']) {
$r = q("select * from item_id left join item on item.id = item_id.iid where service = '%s' and sid = '%s' and uid = %d and item.id != item.parent limit 1",
dbesc($_REQUEST['namespace']),
dbesc($_REQUEST['comment_id']),
intval($user_info['uid'])
);
if(! $r)
return false;
$id = $r[0]['iid'];
}
}
if(! $id)
return false;