set post rep to 0 when created

This commit is contained in:
Baris Soner Usakli
2013-05-06 13:46:14 -04:00
parent 91c2271ffd
commit 9a3c907056

View File

@@ -196,6 +196,7 @@ var RDB = require('./redis.js'),
RDB.set('pid:' + pid + ':content', content);
RDB.set('pid:' + pid + ':uid', uid);
RDB.set('pid:' + pid + ':timestamp', new Date().getTime());
RDB.set('pid:' + pid + ':rep', 0);
RDB.incr('tid:' + tid + ':postcount');