Remove calls to feed.js

v1.18.x
Micheil Smith 11 years ago
parent daa76e821c
commit c619301735

@ -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);
});
}
@ -1224,4 +1217,4 @@ var async = require('async'),
});
}
}(exports));
}(exports));

Loading…
Cancel
Save