From 58c06893e1662b034480d363f07baaf09e780686 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 19 Mar 2012 20:05:19 +0000 Subject: [PATCH] if the comment succeeds, we still want to set the 'user tried to comment' cookie :P --- ext/comment/main.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/comment/main.php b/ext/comment/main.php index af716ce6..ebf8ebe7 100644 --- a/ext/comment/main.php +++ b/ext/comment/main.php @@ -487,6 +487,9 @@ class CommentList extends Extension { // all checks passed else { + if($user->is_anonymous()) { + set_prefixed_cookie("nocache", "Anonymous Commenter", time()+60*60*24, "/"); + } $database->Execute( "INSERT INTO comments(image_id, owner_id, owner_ip, posted, comment) ". "VALUES(:image_id, :user_id, :remote_addr, now(), :comment)",