some profile changes, added post count to users and account and some css to account

This commit is contained in:
Baris Soner Usakli
2013-05-06 13:25:07 -04:00
parent 92175274b5
commit 48d5100dfe
4 changed files with 47 additions and 14 deletions

View File

@@ -202,7 +202,10 @@ var RDB = require('./redis.js'),
// User Details - move this out later
RDB.lpush('uid:' + uid + ':posts', pid);
if (callback) callback(pid);
RDB.db.hincrby(uid, 'postcount', 1);
if (callback)
callback(pid);
});
}