mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	removed posttools edit
This commit is contained in:
		| @@ -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, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user