mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 02:55:58 +01:00 
			
		
		
		
	closes #199
This commit is contained in:
		| @@ -70,13 +70,18 @@ var	RDB = require('./redis.js'), | ||||
| 				} | ||||
|  | ||||
| 				Posts.addUserInfoToPost(postData, function() { | ||||
| 					topics.getTopicField(postData.tid, 'slug', function(err, topicSlug) { | ||||
| 					topics.getTopicFields(postData.tid, ['slug', 'deleted'], function(err, topicData) { | ||||
| 						if(err) | ||||
| 							return callback(err); | ||||
|  | ||||
| 						if(topicData.deleted === '1') | ||||
| 							return callback(null); | ||||
|  | ||||
| 						if(postData.content) | ||||
| 							postData.content = utils.strip_tags(postTools.markdownToHTML(postData.content)); | ||||
|  | ||||
| 						postData.relativeTime = utils.relativeTime(postData.timestamp); | ||||
| 						postData.topicSlug = topicSlug; | ||||
| 						postData.topicSlug = topicData.slug; | ||||
| 						posts.push(postData); | ||||
| 						callback(null); | ||||
| 					}); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user