OSDN Git Service

Merge branch 'owner_only_setting'
[coroid/inqubus.git] / frontend / src / yukihane / inqubus / config / ConfigCommentProfile.java
index 33838c2..8054992 100644 (file)
@@ -14,6 +14,7 @@ public class ConfigCommentProfile implements CommentProfile {
     private final boolean disablePerMinComment;
     private final long backLogPoint;
     private final boolean download;
+    private final boolean ownerCommentOnly;
     private final File dir;
     private final String fileName;
 
@@ -24,6 +25,7 @@ public class ConfigCommentProfile implements CommentProfile {
         this.disablePerMinComment = p.getCommentMinDisabled();
         this.backLogPoint = -1L;
         this.download = !p.getCommentUseLocal();
+        this.ownerCommentOnly = p.getCommentOwnerOnly();
         this.dir = new File(p.getCommentDir());
         this.fileName = p.getCommentFileNamePattern();
     }
@@ -50,7 +52,7 @@ public class ConfigCommentProfile implements CommentProfile {
 
     @Override
     public boolean isOwnerCommentOnly() {
-        return false;
+        return ownerCommentOnly;
     }
 
     @Override