mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-31 19:15:58 +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++) {
|
for (var i=0, ii=content.length; i<ii; i++) {
|
||||||
posts.push({
|
posts.push({
|
||||||
'pid' : pid[i],
|
'pid' : pid[i],
|
||||||
'content' : marked(content[i]),
|
'content' : marked(content[i] || ''),
|
||||||
'uid' : uid[i],
|
'uid' : uid[i],
|
||||||
'userName' : userNames[i] || 'anonymous',
|
'userName' : userNames[i] || 'anonymous',
|
||||||
'gravatar' : gravatars[i],
|
'gravatar' : gravatars[i],
|
||||||
|
|||||||
@@ -150,7 +150,7 @@ var RDB = require('./redis.js'),
|
|||||||
RDB.set('topic:slug:' + slug + ':tid', tid);
|
RDB.set('topic:slug:' + slug + ':tid', tid);
|
||||||
|
|
||||||
// Posts
|
// Posts
|
||||||
posts.create(uid, content, function(pid) {
|
posts.create(uid, tid, content, function(pid) {
|
||||||
RDB.lpush('tid:' + tid + ':posts', pid);
|
RDB.lpush('tid:' + tid + ':posts', pid);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user