mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	removed posttools edit
This commit is contained in:
		| @@ -8,10 +8,6 @@ var async = require('async'), | |||||||
|  |  | ||||||
| (function(PostTools) { | (function(PostTools) { | ||||||
|  |  | ||||||
| 	PostTools.edit = function(data, callback) { |  | ||||||
| 		posts.edit(data, callback); |  | ||||||
| 	}; |  | ||||||
|  |  | ||||||
| 	PostTools.delete = function(uid, pid, callback) { | 	PostTools.delete = function(uid, pid, callback) { | ||||||
| 		togglePostDelete(uid, pid, true, 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 + ']]')); | 		return callback(new Error('[[error:content-too-long, ' + meta.config.maximumPostLength + ']]')); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	postTools.edit({ | 	posts.edit({ | ||||||
| 		uid: socket.uid, | 		uid: socket.uid, | ||||||
| 		handle: data.handle, | 		handle: data.handle, | ||||||
| 		pid: data.pid, | 		pid: data.pid, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user