diff --git a/graph2/types/chapter.go b/graph2/types/chapter.go index 3c924c9..880245f 100644 --- a/graph2/types/chapter.go +++ b/graph2/types/chapter.go @@ -29,6 +29,10 @@ func (r *chapterResolver) Comments(ctx context.Context, chapter *models.Chapter, limitValue = *limit } + if !chapter.CommentMode.IsEnabled() { + return nil, nil + } + return comments.ListChapterID(chapter.ID, limitValue) }