aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-18 17:08:03 -0700
committerfriendica <info@friendica.com>2012-07-18 17:08:03 -0700
commitd92a4a686dd989613cfb628896902c7a4f21c522 (patch)
tree6e255cfe2108602c32b40d9d4c424f790176467e /mod/item.php
parent0400779b43525de44dab7d076aa184d634aba0f2 (diff)
downloadvolse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.tar.gz
volse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.tar.bz2
volse-hubzilla-d92a4a686dd989613cfb628896902c7a4f21c522.zip
eliminate the obsolete "last-child" indicator
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 3b0a52fc9..db28e255f 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -734,8 +734,7 @@ function item_post(&$a) {
if($parent) {
- // This item is the last leaf and gets the comment box, clear any ancestors
- $r = q("UPDATE `item` SET `last-child` = 0, `changed` = '%s' WHERE `parent` = %d ",
+ $r = q("UPDATE `item` SET `changed` = '%s' WHERE `parent` = %d ",
dbesc(datetime_convert()),
intval($parent)
);
@@ -800,7 +799,7 @@ function item_post(&$a) {
if(! $parent)
$parent = $post_id;
- $r = q("UPDATE `item` SET `parent` = %d, `parent-uri` = '%s', `plink` = '%s', `changed` = '%s', `last-child` = 1, `visible` = 1
+ $r = q("UPDATE `item` SET `parent` = %d, `parent-uri` = '%s', `plink` = '%s', `changed` = '%s', `visible` = 1
WHERE `id` = %d LIMIT 1",
intval($parent),
dbesc(($parent == $post_id) ? $uri : $parent_item['uri']),