aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-11-28 00:16:13 -0800
committerfriendica <info@friendica.com>2013-11-28 00:16:13 -0800
commitaab9b30d03e2cad7be2207fa22dcd6ddad224369 (patch)
treeeae68497541e77c9401325434f57a6cd3f0e6400 /include
parent21e465e48ae918b75d011d0fc5de1864bb474edc (diff)
downloadvolse-hubzilla-aab9b30d03e2cad7be2207fa22dcd6ddad224369.tar.gz
volse-hubzilla-aab9b30d03e2cad7be2207fa22dcd6ddad224369.tar.bz2
volse-hubzilla-aab9b30d03e2cad7be2207fa22dcd6ddad224369.zip
synchronise deletion of comments between red and wp
Diffstat (limited to 'include')
-rw-r--r--include/api.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index ca5592d08..093839875 100644
--- a/include/api.php
+++ b/include/api.php
@@ -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;