diff --git a/app/Services/Logic/Answer/CommentList.php b/app/Services/Logic/Answer/CommentList.php index 959e9ab7..8c32e903 100644 --- a/app/Services/Logic/Answer/CommentList.php +++ b/app/Services/Logic/Answer/CommentList.php @@ -31,6 +31,8 @@ class CommentList extends LogicService $params['item_id'] = $answer->id; $params['item_type'] = CommentModel::ITEM_ANSWER; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; + $params['deleted'] = 0; $sort = $pagerQuery->getSort(); $page = $pagerQuery->getPage(); diff --git a/app/Services/Logic/Article/CommentList.php b/app/Services/Logic/Article/CommentList.php index be2cb373..ed2f034f 100644 --- a/app/Services/Logic/Article/CommentList.php +++ b/app/Services/Logic/Article/CommentList.php @@ -31,6 +31,7 @@ class CommentList extends LogicService $params['item_id'] = $article->id; $params['item_type'] = CommentModel::ITEM_ARTICLE; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; $params['deleted'] = 0; $sort = $pagerQuery->getSort(); diff --git a/app/Services/Logic/Question/CommentList.php b/app/Services/Logic/Question/CommentList.php index 14add9ef..aed22e64 100644 --- a/app/Services/Logic/Question/CommentList.php +++ b/app/Services/Logic/Question/CommentList.php @@ -31,6 +31,8 @@ class CommentList extends LogicService $params['item_id'] = $question->id; $params['item_type'] = CommentModel::ITEM_QUESTION; $params['published'] = CommentModel::PUBLISH_APPROVED; + $params['parent_id'] = 0; + $params['deleted'] = 0; $sort = $pagerQuery->getSort(); $page = $pagerQuery->getPage();