mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-03 04:25:55 +01:00
set post rep to 0 when created
This commit is contained in:
@@ -196,6 +196,7 @@ var RDB = require('./redis.js'),
|
|||||||
RDB.set('pid:' + pid + ':content', content);
|
RDB.set('pid:' + pid + ':content', content);
|
||||||
RDB.set('pid:' + pid + ':uid', uid);
|
RDB.set('pid:' + pid + ':uid', uid);
|
||||||
RDB.set('pid:' + pid + ':timestamp', new Date().getTime());
|
RDB.set('pid:' + pid + ':timestamp', new Date().getTime());
|
||||||
|
RDB.set('pid:' + pid + ':rep', 0);
|
||||||
|
|
||||||
RDB.incr('tid:' + tid + ':postcount');
|
RDB.incr('tid:' + tid + ':postcount');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user