OSDN Git Service

Merge branch 'only_owner_comment'
[coroid/inqubus.git] / frontend / src / saccubus / worker / impl / download / Download.java
index 84732e0..8a412ec 100644 (file)
@@ -98,10 +98,12 @@ public class Download extends Worker<DownloadResult, DownloadProgress> {
             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());