Clean up declared log if prevent_redeclare != "N" #2238

This commit is contained in:
Kijin Sung 2024-03-28 21:38:38 +09:00
parent 35b5bcc030
commit 5cfd348096
2 changed files with 16 additions and 3 deletions

View file

@ -417,6 +417,15 @@ class CommentAdminController extends Comment
{
return $output;
}
if(Context::get('prevent_redeclare') !== 'Y')
{
$output = executeQuery('comment.deleteDeclaredCommentLog', $args);
if(!$output->toBool())
{
return $output;
}
}
}
}