Skip to content

Node.js based forum software built for the modern web

set post rep to 0 when created

Baris Soner Usakli9a3c90705663
diff --git a/src/posts.js b/src/posts.js
index e03badb1fd..41589a7793 100644
--- a/src/posts.js
+++ b/src/posts.js
@@ -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');