From 3d0cdfff5632aff8ae053147feec953322d2768f Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 23 Mar 2011 11:40:32 +0000 Subject: [PATCH] mark users who have commented as interacting --- ext/comment/main.php | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/comment/main.php b/ext/comment/main.php index 635b73c6..215be23d 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -457,6 +457,7 @@ class CommentList extends SimpleExtension { "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)); $cid = $database->get_last_insert_id(); + setcookie("nocache", "true", time()+60*60); log_info("comment", "Comment #$cid added to Image #$image_id"); } }