diff --git a/src/postTools.js b/src/postTools.js index 5a7310603e..37c888fa54 100644 --- a/src/postTools.js +++ b/src/postTools.js @@ -11,8 +11,7 @@ var winston = require('winston'), utils = require('../public/src/utils'), plugins = require('./plugins'), events = require('./events'), - meta = require('./meta'), - Feed = require('./feed'); + meta = require('./meta'); (function(PostTools) { PostTools.isMain = function(pid, tid, callback) { @@ -162,8 +161,6 @@ var winston = require('winston'), } }); - Feed.updateTopic(postData.tid); - Feed.updateRecent(); callback(null); }); @@ -207,8 +204,6 @@ var winston = require('winston'), }); }); - Feed.updateTopic(postData.tid); - Feed.updateRecent(); db.searchIndex('post', postData.content, pid); diff --git a/src/posts.js b/src/posts.js index 7bd44f72d1..a634b2c4f1 100644 --- a/src/posts.js +++ b/src/posts.js @@ -7,7 +7,6 @@ var db = require('./database'), threadTools = require('./threadTools'), postTools = require('./postTools'), categories = require('./categories'), - feed = require('./feed'), plugins = require('./plugins'), meta = require('./meta'), diff --git a/src/topics.js b/src/topics.js index 555c84eacc..4dba87e38d 100644 --- a/src/topics.js +++ b/src/topics.js @@ -15,7 +15,6 @@ var async = require('async'), threadTools = require('./threadTools'), postTools = require('./postTools'), notifications = require('./notifications'), - feed = require('./feed'), favourites = require('./favourites'), meta = require('./meta'); @@ -57,8 +56,6 @@ var async = require('async'), db.incrObjectField('category:' + cid, 'topic_count'); db.incrObjectField('global', 'topicCount'); - feed.updateCategory(cid); - callback(null, tid); }); }); @@ -158,12 +155,10 @@ var async = require('async'), db.getObjectField('tid:lastFeedUpdate', tid, function(err, lastFeedUpdate) { var now = Date.now(); if(!lastFeedUpdate || parseInt(lastFeedUpdate, 10) < now - 3600000) { - feed.updateTopic(tid); db.setObjectField('tid:lastFeedUpdate', tid, now); } }); - feed.updateRecent(); threadTools.notifyFollowers(tid, postData.pid, uid); user.sendPostNotificationToFollowers(uid, tid, postData.pid); @@ -1185,7 +1180,6 @@ var async = require('async'), db.sortedSetRemove('topics:views', tid); Topics.getTopicField(tid, 'cid', function(err, cid) { - feed.updateCategory(cid); db.incrObjectFieldBy('category:' + cid, 'topic_count', -1); }); } @@ -1199,7 +1193,6 @@ var async = require('async'), }); Topics.getTopicField(tid, 'cid', function(err, cid) { - feed.updateCategory(cid); db.incrObjectFieldBy('category:' + cid, 'topic_count', 1); }); } @@ -1224,4 +1217,4 @@ var async = require('async'), }); } -}(exports)); \ No newline at end of file +}(exports));