mark users who have commented as interacting
This commit is contained in:
parent
b481db493c
commit
3d0cdfff56
@ -457,6 +457,7 @@ class CommentList extends SimpleExtension {
|
|||||||
"VALUES(:image_id, :user_id, :remote_addr, now(), :comment)",
|
"VALUES(:image_id, :user_id, :remote_addr, now(), :comment)",
|
||||||
array("image_id"=>$image_id, "user_id"=>$user->id, "remote_addr"=>$_SERVER['REMOTE_ADDR'], "comment"=>$comment));
|
array("image_id"=>$image_id, "user_id"=>$user->id, "remote_addr"=>$_SERVER['REMOTE_ADDR'], "comment"=>$comment));
|
||||||
$cid = $database->get_last_insert_id();
|
$cid = $database->get_last_insert_id();
|
||||||
|
setcookie("nocache", "true", time()+60*60);
|
||||||
log_info("comment", "Comment #$cid added to Image #$image_id");
|
log_info("comment", "Comment #$cid added to Image #$image_id");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user