Comparing version
@@ -5,3 +5,2 @@ var append = require('append'); | ||
var url = require('url'); | ||
var sha1 = require('sha1'); | ||
var md5 = require('MD5'); | ||
@@ -57,10 +56,6 @@ var querystring = require('querystring'); | ||
async.parallel([ | ||
function (ensured) { | ||
col.ensureIndex('res', ensured); | ||
}, | ||
function (ensured) { | ||
col.ensureIndex('modified', ensured); | ||
} | ||
], function (err) { | ||
col.ensureIndex({ | ||
res: -1, | ||
modified: -1 | ||
}, function (err) { | ||
if (err) | ||
@@ -117,5 +112,2 @@ return cb(err); | ||
// hash the comment, necessary for future comment editing | ||
comment.hash = sha1(JSON.stringify(comment)); | ||
// get collection and save comment | ||
@@ -284,4 +276,2 @@ this.getCollections(function(err, col) { | ||
comment.regular = true; | ||
// save comment | ||
@@ -288,0 +278,0 @@ this.saveComment(res, comment, function(err, comment) { |
@@ -10,3 +10,3 @@ { | ||
], | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"repository": { | ||
@@ -28,4 +28,3 @@ "type": "git", | ||
"mongodb": ">=0.9.9", | ||
"pingback": ">=0.0.2", | ||
"sha1": ">=0.0.1" | ||
"pingback": ">=0.0.2" | ||
}, | ||
@@ -32,0 +31,0 @@ "licenses": [ |
5
-16.67%17730
-1.85%340
-2.3%- Removed
- Removed