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

This commit is contained in:
Micheil Smith
2014-02-09 21:26:11 +00:00
parent cfaa0b3754
commit 12b52e5320

View File

@@ -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);