Assume deleted posts less than 60 seconds old are false positives. #166

This commit is contained in:
ccd0 2014-11-01 23:03:42 -07:00
parent 32c00c36a0
commit 481e0452e8

View File

@ -289,12 +289,14 @@ ThreadUpdater =
# continue if post.isDead
ID = +post.ID
unless ID in index
post.kill()
else if post.isDead
post.resurrect()
else if post.file and not (post.file.isDead or ID in files)
post.kill true
# Assume deleted posts less than 60 seconds old are false positives.
unless post.info.date > Date.now() - 60 * $.SECOND
unless ID in index
post.kill()
else if post.isDead
post.resurrect()
else if post.file and not (post.file.isDead or ID in files)
post.kill true
# Fetching your own posts after posting
if ThreadUpdater.postID and ThreadUpdater.postID is ID