run npm install. starting rss atom feeds of topics. fixed bug in topics where new topics created were not being saved properly

This commit is contained in:
psychobunny
2013-05-27 14:55:03 -04:00
parent 501cda24de
commit bcc903ee1c
3 changed files with 19 additions and 11 deletions

View File

@@ -6,6 +6,7 @@ var RDB = require('./redis.js'),
favourites = require('./favourites.js'),
config = require('../config.js'),
threadTools = require('./threadTools.js'),
feed = require('./feed.js'),
async = require('async');
marked.setOptions({
@@ -256,12 +257,14 @@ marked.setOptions({
RDB.incr('tid:' + tid + ':postcount');
user.getUserFields(uid, ['username'], function(data) {
user.getUserFields(uid, ['username'], function(data) { // todo parallel
//add active users to this category
RDB.get('tid:' + tid + ':cid', function(err, cid) {
RDB.handle(err);
feed.updateTopic(tid, cid);
// this is a bit of a naive implementation, defn something to look at post-MVP
RDB.scard('cid:' + cid + ':active_users', function(amount) {
if (amount > 10) {