Browse Source

graph2: Changed Chapter to not return any comments if mode is disabled, even if there are comments.

module-madness-pointers
Gisle Aune 5 years ago
parent
commit
e3e3ea07db
  1. 4
      graph2/types/chapter.go

4
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)
}

Loading…
Cancel
Save