if the comment succeeds, we still want to set the 'user tried to comment' cookie :P
This commit is contained in:
parent
713c3db01a
commit
58c06893e1
@ -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)",
|
||||
|
Loading…
x
Reference in New Issue
Block a user