Fix title_bold and other flags not being unset when updated

This commit is contained in:
Kijin Sung 2023-10-18 20:45:14 +09:00
parent 58c910dfa0
commit 6e4c428420
2 changed files with 7 additions and 3 deletions

View file

@ -969,6 +969,8 @@ class CommentController extends Comment
$obj->homepage = $obj->homepage ?? $source_obj->get('homepage');
}
if(($obj->is_secret ?? 'N') !== 'Y') $obj->is_secret = 'N';
if(($obj->notify_message ?? 'N') !== 'Y') $obj->notify_message = 'N';
$obj->uploaded_count = FileModel::getFilesCount($obj->comment_srl);
// call a trigger (before)