|
@ -29,6 +29,10 @@ func (r *chapterResolver) Comments(ctx context.Context, chapter *models.Chapter, |
|
|
limitValue = *limit |
|
|
limitValue = *limit |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if !chapter.CommentMode.IsEnabled() { |
|
|
|
|
|
return nil, nil |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return comments.ListChapterID(chapter.ID, limitValue) |
|
|
return comments.ListChapterID(chapter.ID, limitValue) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|