Merge branch 'master' of github.com:psychobunny/NodeBB

This commit is contained in:
Julian Lam
2013-05-14 17:19:28 -04:00
9 changed files with 740 additions and 578 deletions

View File

@@ -222,6 +222,14 @@ marked.setOptions({
RDB.set('pid:' + pid + ':tid', tid);
RDB.incr('tid:' + tid + ':postcount');
user.getUserFields(uid, ['username','picture'], function(data){
RDB.set('tid:' + tid + ':recent:post', content);
RDB.set('tid:' + tid + ':recent:author', data.username);
RDB.set('tid:' + tid + ':recent:picture', data.picture);
});
// User Details - move this out later
RDB.lpush('uid:' + uid + ':posts', pid);