1
0
Fork 0

update timestamp on activity change (comment/like)

This commit is contained in:
Friendika 2011-09-16 06:49:24 -07:00
commit 9c3503a706
2 changed files with 13 additions and 0 deletions

View file

@ -865,6 +865,13 @@ function item_store($arr,$force_parent = false) {
intval($current_post)
);
// update the timestamp on the parent
q("UPDATE `item` set `changed` = '%s' WHERE `id` = %d LIMIT 1",
dbesc(datetime_convert()),
intval($parent_id)
);
if($dsprsig) {
q("insert into sign (`iid`,`signed_text`,`signature`,`signer`) values (%d,'%s','%s','%s') ",
intval($current_post),