fixing scoring bug

This commit is contained in:
Sacha Greif 2014-07-19 09:18:10 +09:00
parent bcd0bdf359
commit ef6b976c20

View file

@ -12,6 +12,10 @@ updateScore = function (args) {
// Age Check
// If for some reason item doesn't have a "postedAt" property, abort
if (!item.postedAt)
return 0;
var postedAt = item.postedAt.valueOf();
var now = new Date().getTime();
var age = now - postedAt;