topic creation now checks for valid pid as well

v1.18.x
Julian Lam 12 years ago
parent 4f38bb10e8
commit 86af1b2af5

@ -149,7 +149,7 @@ var RDB = require('./redis.js'),
// Posts
posts.create(uid, tid, content, function(pid) {
RDB.lpush('tid:' + tid + ':posts', pid);
if (pid > 0) RDB.lpush('tid:' + tid + ':posts', pid);
});

Loading…
Cancel
Save