Implements hook_node_insert().
File
-
./
spambot.module, line 642
Code
function spambot_comment_insert($comment) {
$connection = \Drupal::database();
$connection->update('comment_field_data')
->condition('cid', $comment->id())
->fields([
'hostname' => \Drupal::request()->getClientIp(),
])
->execute();
}