Removed storage of tid:lastFeedUpdate now that feeds are on-demand

v1.18.x
Micheil Smith 11 years ago
parent cfaa0b3754
commit 12b52e5320

@ -152,13 +152,6 @@ var async = require('async'),
posts.create(uid, tid, content, next);
},
function(postData, next) {
db.getObjectField('tid:lastFeedUpdate', tid, function(err, lastFeedUpdate) {
var now = Date.now();
if(!lastFeedUpdate || parseInt(lastFeedUpdate, 10) < now - 3600000) {
db.setObjectField('tid:lastFeedUpdate', tid, now);
}
});
threadTools.notifyFollowers(tid, postData.pid, uid);
user.sendPostNotificationToFollowers(uid, tid, postData.pid);

Loading…
Cancel
Save