From 9a3c90705663058afce0f0f2dc7e1984192ffec6 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Mon, 6 May 2013 13:46:14 -0400 Subject: [PATCH] set post rep to 0 when created --- src/posts.js | 1 + 1 file changed, 1 insertion(+) 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');