Commit 552ebc66 authored by Luke Ward's avatar Luke Ward
Browse files

Auto-flags reported by NexBot to hit unique key

parent e015fffc
......@@ -155,16 +155,21 @@
if ($moderation) {
// Report post
// Report postcd
$stmt = \dtw\DtW::$db->prepare("
INSERT INTO `forum_flags` (`post_id`, `user_id`, `type`, `comment`)
VALUES (:post_id, null, :type, :comment);
VALUES (:post_id, 215587, :type, :comment);
");
$stmt->execute(array(
':post_id' => $this->id,
':type' => $moderation,
':comment' => $comment
));
try {
$stmt->execute(array(
':post_id' => $this->id,
':type' => $moderation,
':comment' => $comment
));
} catch (\Exception $e) {
// Already flagged
}
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment