Node.js based forum software built for the modern web
added back feeds, removed duplicate post var in feed
Baris Usakli168052bf45ed
diff --git a/src/feed.js b/src/feed.jsindex 8251d70cff..522edab086 100644--- a/src/feed.js+++ b/src/feed.js@@ -42,7 +42,6 @@author: topicData.posts[0].username,ttl: Feed.defaults.ttl}),- topic_posts = topicData.posts.concat(topicData.posts),dateStamp;// Add pubDate if topic contains posts@@ -50,7 +49,7 @@feed.pubDate = new Date(parseInt(topicData.posts[0].timestamp, 10)).toUTCString();}- async.each(topic_posts, function(postData, next) {+ async.each(topicData.posts, function(postData, next) {if (postData.deleted === '0') {dateStamp = new Date(parseInt(postData.edited === '0' ? postData.timestamp : postData.edited, 10)).toUTCString();diff --git a/src/posts.js b/src/posts.jsindex bc1336ce81..b3be7dfe66 100644--- a/src/posts.js+++ b/src/posts.js@@ -85,8 +85,8 @@ var RDB = require('./redis'),var cid = topicData.cid;- //feed.updateTopic(tid);- //feed.updateRecent();+ feed.updateTopic(tid);+ feed.updateRecent();RDB.zadd('categories:recent_posts:cid:' + cid, timestamp, pid);