mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
Remove calls to feed.js
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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'),
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user