removing static saving of recent post, and added in dynamic pulling on Topics.get

This commit is contained in:
Julian Lam
2013-05-17 12:25:06 -04:00
parent 12ff6bf1e1
commit 4b6ad9607e
5 changed files with 72 additions and 26 deletions

View File

@@ -37,7 +37,6 @@ marked.setOptions({
var uid = post_data.uid[i],
pid = post_data.pid[i];
console.log(current_user, uid);
if (post_data.deleted[i] === null || (post_data.deleted[i] === '1' && manage_content) || current_user === uid) {
var post_obj = {
'pid' : pid,
@@ -307,9 +306,6 @@ marked.setOptions({
user.getUserFields(uid, ['username'], function(data){
RDB.set('tid:' + tid + ':recent:post', content);
RDB.set('tid:' + tid + ':recent:author', data.username);
//add active users to this category
RDB.get('tid:' + tid + ':cid', function(err, cid) {
RDB.handle(err);