diff --git a/CHANGELOG.md b/CHANGELOG.md index c791b177f..050999d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -36,6 +36,11 @@ ## v1.13.0 +**v1.13.0.25** *(2016-11-13)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.25/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.25/builds/4chan-X-noupdate.crx)] +- Fix bug from v1.13.0.0 causing errors on index refresh in certain cases when creating threads with cookies disabled. #1184 +- Better link text in file error message: 'delete' -> 'delete post'. #1186 +- Fix bug causing auto-pruning if you refreshed the index too soon after creating a thread. + **v1.13.0.24** *(2016-11-09)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.24/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.0.24/builds/4chan-X-noupdate.crx)] - Fix bug from v1.13.0.0 causing lack of scroll bar when `Fit width` is disabled and images overflow screen. diff --git a/src/Monitoring/ThreadWatcher.coffee b/src/Monitoring/ThreadWatcher.coffee index c43e03a7f..d9cbd4500 100644 --- a/src/Monitoring/ThreadWatcher.coffee +++ b/src/Monitoring/ThreadWatcher.coffee @@ -145,6 +145,8 @@ ThreadWatcher = boardID = g.BOARD.ID nKilled = 0 for threadID, data of db.data.boards[boardID] when not data?.isDead and "#{boardID}.#{threadID}" not in e.detail.threads + # Don't prune threads that have yet to appear in index. + continue unless e.detail.threads.some (fullID) -> +fullID.split('.')[1] > threadID nKilled++ if Conf['Auto Prune'] or not (data and typeof data is 'object') # corrupt data db.delete {boardID, threadID}