shinoka7 6 лет назад
Родитель
Сommit
e82c0d0132
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      src/server/models/comment.js

+ 3 - 1
src/server/models/comment.js

@@ -14,9 +14,10 @@ module.exports = function(crowi) {
     commentPosition: { type: Number, default: -1 },
     createdAt: { type: Date, default: Date.now },
     isMarkdown: { type: Boolean, default: false },
+    // replyTo: { type: ObjectId, default: null },
   });
 
-  commentSchema.statics.create = function(pageId, creatorId, revisionId, comment, position, isMarkdown) {
+  commentSchema.statics.create = function(pageId, creatorId, revisionId, comment, position, isMarkdown /* , replyTo */) {
     const Comment = this;
 
     return new Promise(((resolve, reject) => {
@@ -28,6 +29,7 @@ module.exports = function(crowi) {
       newComment.comment = comment;
       newComment.commentPosition = position;
       newComment.isMarkdown = isMarkdown || false;
+      // newComment.replyTo = replyTo || null;
 
       newComment.save((err, data) => {
         if (err) {