From 09bd42b9f68bfb66998456890c5e5f3789a35613 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 14 Oct 2014 22:52:41 -0400 Subject: [PATCH] removed deleted --- src/posts/delete.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/posts/delete.js b/src/posts/delete.js index 744d5ee0d0..5b2e828abf 100644 --- a/src/posts/delete.js +++ b/src/posts/delete.js @@ -8,7 +8,6 @@ var async = require('async'), module.exports = function(Posts) { - Posts.delete = function(pid, callback) { Posts.setPostField(pid, 'deleted', 1, function(err) { if (err) { @@ -144,7 +143,7 @@ module.exports = function(Posts) { return callback(err); } - topics.getTopicFields(postData.tid, ['cid', 'deleted'], function(err, topicData) { + topics.getTopicFields(postData.tid, ['cid'], function(err, topicData) { if (err) { return callback(err); }