update timestamp on activity change (comment/like)
This commit is contained in:
parent
80f94bb12b
commit
9c3503a706
2 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue