fix(feed): fix feed error #111
This commit is contained in:
@ -97,7 +97,7 @@ module.exports = class Feed {
|
|||||||
const good = (x && x.good) || 0
|
const good = (x && x.good) || 0
|
||||||
const bad = (x && x.bad) || 0
|
const bad = (x && x.bad) || 0
|
||||||
const comments = 0
|
const comments = 0
|
||||||
let time = Math.floor(Date.now() / 1000) - x.feedDate
|
let time = Math.floor(Date.now() / 1000) - ((x && x.feedDate) || 0)
|
||||||
|
|
||||||
const maxTime = 600000
|
const maxTime = 600000
|
||||||
if(time > maxTime)
|
if(time > maxTime)
|
||||||
|
Reference in New Issue
Block a user