mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-27 22:33:10 +09:00
Fix #919 make child comment secret if parent comment is secret
This commit is contained in:
parent
7b1f0b4ee2
commit
69b868c77f
1 changed files with 4 additions and 0 deletions
|
|
@ -443,6 +443,10 @@ class boardController extends board
|
|||
{
|
||||
return new Object(-1, 'msg_invalid_request');
|
||||
}
|
||||
if($parent_comment->isSecret() && $this->module_info->secret === 'Y')
|
||||
{
|
||||
$obj->is_secret = 'Y';
|
||||
}
|
||||
$output = $oCommentController->insertComment($obj, $manual, $update_document);
|
||||
}
|
||||
// Parent does not exist.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue