mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	closes #705
This commit is contained in:
		
							
								
								
									
										19
									
								
								src/posts.js
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								src/posts.js
									
									
									
									
									
								
							| @@ -356,25 +356,6 @@ var db = require('./database'), | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	Posts.emitContentTooShortAlert = function(socket) { | ||||
| 		socket.emit('event:alert', { | ||||
| 			type: 'danger', | ||||
| 			timeout: 2000, | ||||
| 			title: 'Content too short', | ||||
| 			message: "Please enter a longer post. At least " + meta.config.minimumPostLength + " characters.", | ||||
| 			alert_id: 'post_error' | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	Posts.emitTooManyPostsAlert = function(socket) { | ||||
| 		socket.emit('event:alert', { | ||||
| 			title: 'Too many posts!', | ||||
| 			message: 'You can only post every ' + meta.config.postDelay + ' seconds.', | ||||
| 			type: 'danger', | ||||
| 			timeout: 2000 | ||||
| 		}); | ||||
| 	} | ||||
|  | ||||
| 	Posts.uploadPostImage = function(image, callback) { | ||||
|  | ||||
| 		if(!image) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user