aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-22 20:30:23 -0700
committerfriendica <info@friendica.com>2015-03-22 20:30:23 -0700
commit62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040 (patch)
tree629021d00233ee55571cd9071ec00c319186b885 /include/api.php
parentccef9e5636dadeb37cabd70d4a8aece650e70e1f (diff)
downloadvolse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.tar.gz
volse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.tar.bz2
volse-hubzilla-62b2fa6ac7ee85c8572eb868eb30dc2e20cf3040.zip
operation snakebite, cont.
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/api.php b/include/api.php
index 8c0e32ecc..fdc8edece 100644
--- a/include/api.php
+++ b/include/api.php
@@ -727,6 +727,16 @@ require_once('include/items.php');
else
$_REQUEST['parent_mid'] = $parent;
+ if($_REQUEST['namespace'] && $parent) {
+ $x = q("select iid from item_id where service = '%s' and sid = '%s' limit 1",
+ dbesc($_REQUEST['namespace']),
+ dbesc($parent)
+ );
+ if($x) {
+ $_REQUEST['parent'] = $x[0]['iid'];
+ }
+ }
+
if(requestdata('lat') && requestdata('long'))
$_REQUEST['coord'] = sprintf("%s %s",requestdata('lat'),requestdata('long'));