최신 댓글 위젯을 사용하게되면, 비밀글의 댓글이 노출되는 문제가 있지요.
비밀스런 질문에 비밀스런 답을 한 경우라면 당황스러울수 있는데...

목마른자가 우물을 판다고, 임시로 수정해봤습니다.
단점은, 비밀글의 댓글을 출력하지 않는만큼 최신댓글 숫자가 가변적으로 줄어든다는 것입니다.
그래도 노출되는 것보다야 괜찮겠지요?!

/modules/comment/comment.model.php 를 다음과 같이 수정합니다. 

버전 1.2.1 기준으로 168줄째부터 입니다.

             if($comment_list) {
                if(!is_array($comment_list)) $comment_list = array($comment_list);
                $comment_count = count($comment_list);
                $oDocumentModel = &getModel('document');  // 추가
                foreach($comment_list as $key => $attribute) {
                    if(!$attribute->comment_srl) continue;
                    $oDocument = $oDocumentModel->getDocument($attribute->document_srl); // 추가
                    if($oDocument->isSecret()) continue; // 추가
                    $oComment = null;
                    $oComment = new commentItem();
                    $oComment->setAttribute($attribute);
                    if($oComment->isSecret()) continue;   // 추가

                    $result[$key] = $oComment;
                }
                $output->data = $result;
             }

배포자 얼터1

현재평점 0 (평가자 수 : 0)
profile
여기에서 행복한 시간 되십시오.