removed posttools edit

v1.18.x
barisusakli 10 years ago
parent 45c446dac0
commit 5388ddf791

@ -8,10 +8,6 @@ var async = require('async'),
(function(PostTools) {
PostTools.edit = function(data, callback) {
posts.edit(data, callback);
};
PostTools.delete = function(uid, pid, callback) {
togglePostDelete(uid, pid, true, callback);
};

@ -294,7 +294,7 @@ SocketPosts.edit = function(socket, data, callback) {
return callback(new Error('[[error:content-too-long, ' + meta.config.maximumPostLength + ']]'));
}
postTools.edit({
posts.edit({
uid: socket.uid,
handle: data.handle,
pid: data.pid,

Loading…
Cancel
Save