final File file = new File(profile.getCommentProfile().getDir(), name);
final EnumSet<DownloadCommentType> commentSet = EnumSet.of(DownloadCommentType.OWNER);
- if (profile.getCommentProfile().isDisablePerMinComment()) {
- commentSet.add(DownloadCommentType.COMMENT_OLD);
- } else {
- commentSet.add(DownloadCommentType.COMMENT);
+ if (!profile.getCommentProfile().isOwnerCommentOnly()) {
+ if (profile.getCommentProfile().isDisablePerMinComment()) {
+ commentSet.add(DownloadCommentType.COMMENT_OLD);
+ } else {
+ commentSet.add(DownloadCommentType.COMMENT);
+ }
}
commentFile = client.getCommentFile(vi, file.getPath(), commentSet, wbi, profile.getCommentProfile().
getLengthRelatedCommentSize());