mirror of
				https://github.com/NodeBB/NodeBB.git
				synced 2025-10-31 11:05:54 +01:00 
			
		
		
		
	fixed post content
This commit is contained in:
		| @@ -48,7 +48,7 @@ var	RDB = require('./redis.js'), | ||||
| 									for (var i=0, ii=content.length; i<ii; i++) { | ||||
| 										posts.push({ | ||||
| 											'pid' : pid[i], | ||||
| 											'content' : marked(content[i]), | ||||
| 											'content' : marked(content[i] || ''), | ||||
| 											'uid' : uid[i], | ||||
| 											'userName' : userNames[i] || 'anonymous', | ||||
| 											'gravatar' : gravatars[i], | ||||
|   | ||||
| @@ -150,7 +150,7 @@ var	RDB = require('./redis.js'), | ||||
| 			RDB.set('topic:slug:' + slug + ':tid', tid); | ||||
|  | ||||
| 			// Posts | ||||
| 			posts.create(uid, content, function(pid) { | ||||
| 			posts.create(uid, tid, content, function(pid) { | ||||
| 				RDB.lpush('tid:' + tid + ':posts', pid); | ||||
| 			}); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user