started to add real data to the topics listing, got latest post working per topic

This commit is contained in:
psychobunny
2013-05-14 17:06:48 -04:00
parent 527547b4a4
commit a7cefe35f8
4 changed files with 76 additions and 55 deletions

View File

@@ -212,6 +212,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);