mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 19:15:58 +01:00 
			
		
		
		
	broken posts
This commit is contained in:
		| @@ -75,12 +75,7 @@ marked.setOptions({ | |||||||
| 		// get all data for thread in asynchronous fashion | 		// get all data for thread in asynchronous fashion | ||||||
| 		RDB.lrange('tid:' + tid + ':posts', start, end, function(err, pids) { | 		RDB.lrange('tid:' + tid + ':posts', start, end, function(err, pids) { | ||||||
| 			RDB.handle(err); | 			RDB.handle(err); | ||||||
|  | 	 | ||||||
| 			if(pids.length === 0){ |  | ||||||
| 				callback(false); |  | ||||||
| 				return; |  | ||||||
| 			} |  | ||||||
| 			 |  | ||||||
| 			var content = [], uid = [], timestamp = [], pid = [], post_rep = [], editor = [], editTime = [], deleted = []; | 			var content = [], uid = [], timestamp = [], pid = [], post_rep = [], editor = [], editTime = [], deleted = []; | ||||||
|  |  | ||||||
| 			for (var i=0, ii=pids.length; i<ii; i++) { | 			for (var i=0, ii=pids.length; i<ii; i++) { | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user