aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php
index 025a12a32..38f4c2040 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -803,6 +803,12 @@ function item_post(&$a) {
// NOTREACHED
}
+ // update the timestamp on the parent
+
+ q("UPDATE `item` set `changed` = '%s' WHERE `id` = %d LIMIT 1",
+ dbesc(datetime_convert()),
+ intval($parent)
+ );
$datarray['id'] = $post_id;
$datarray['plink'] = $a->get_baseurl() . '/display/' . $user['nickname'] . '/' . $post_id;