From f0caac242c3ce08a1608c1fc5b891be600cd63f5 Mon Sep 17 00:00:00 2001 From: Baris Soner Usakli Date: Wed, 4 Dec 2013 18:34:58 -0500 Subject: [PATCH] fixed incr in topic post --- src/topics.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/topics.js b/src/topics.js index 1f33d5be51..4345545685 100644 --- a/src/topics.js +++ b/src/topics.js @@ -94,7 +94,7 @@ var async = require('async'), // in future it may be possible to add topics to several categories, so leaving the door open here. db.sortedSetAdd('categories:' + cid + ':tid', timestamp, tid); - db.incrObjectField('category:' + cid, 'topic_count', 1); + db.incrObjectField('category:' + cid, 'topic_count'); db.incrObjectField('global', 'topicCount'); feed.updateCategory(cid);