comment submit time bug fixed

This commit is contained in:
Nathan Leniz
2015-03-08 18:48:20 +09:00
parent f367a0310e
commit de91be44da
4 changed files with 43 additions and 37 deletions

View File

@@ -269,7 +269,8 @@ exports.commentSubmit = function(req, res, next) {
upvotes: 0,
author: data.author,
comments: [],
topLevel: true
topLevel: true,
commentOn: Date.now()
});
commentSave(comment, Story, res);
};
@@ -285,7 +286,8 @@ exports.commentOnCommentSubmit = function(req, res, next) {
upvotes: 0,
author: data.author,
comments: [],
topLevel: false
topLevel: false,
commentOn: Date.now()
});
commentSave(comment, Comment, res);
};