diff options
author | friendica <info@friendica.com> | 2012-08-15 20:01:55 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-15 20:01:55 -0700 |
commit | 2358a220baad2f8dc027d9bd3cd01c34ae234968 (patch) | |
tree | 84f66d0bfb3c48d6f8409111c0b2216b5ea26eb7 /include/items.php | |
parent | 2a49460c7766d5868115689155e3b9595e5f36a2 (diff) | |
download | volse-hubzilla-2358a220baad2f8dc027d9bd3cd01c34ae234968.tar.gz volse-hubzilla-2358a220baad2f8dc027d9bd3cd01c34ae234968.tar.bz2 volse-hubzilla-2358a220baad2f8dc027d9bd3cd01c34ae234968.zip |
merge from upstream
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/items.php b/include/items.php index 9c72d5359..928cf3160 100755 --- a/include/items.php +++ b/include/items.php @@ -2717,12 +2717,14 @@ function local_delivery($importer,$data) { $parent = 0; if($posted_id) { - $r = q("SELECT `parent` FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", + $r = q("SELECT `parent`, `parent-uri` FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($posted_id), intval($importer['importer_uid']) ); - if(count($r)) + if(count($r)) { $parent = $r[0]['parent']; + $parent_uri = $r[0]['parent-uri']; + } if(! $is_like) { $r1 = q("UPDATE `item` SET `changed` = '%s' WHERE `uid` = %d AND `parent` = %d", @@ -2762,7 +2764,7 @@ function local_delivery($importer,$data) { 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $parent, - + 'parent_uri' => $parent_uri, )); } @@ -2894,6 +2896,7 @@ function local_delivery($importer,$data) { 'verb' => ACTIVITY_POST, 'otype' => 'item', 'parent' => $conv_parent, + 'parent_uri' => $parent_uri )); |