Merge branch 'bstable'

This commit is contained in:
ccd0 2017-08-24 16:42:48 -07:00
commit 1b48d36f1b
2 changed files with 4 additions and 2 deletions

View File

@ -20,6 +20,9 @@
### v1.13.10
**v1.13.10.7** *(2017-08-24)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.10.7/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.10.7/builds/4chan-X-noupdate.crx)]
- Fix quote preview bug when reply is in index data but no thread object exists. #1478
**v1.13.10.6** *(2017-08-10)* - [[Userscript](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.10.6/builds/4chan-X-noupdate.user.js)] [[Chrome extension](https://raw.githubusercontent.com/ccd0/4chan-x/1.13.10.6/builds/4chan-X-noupdate.crx)]
- Disable 'Redirect to HTTPS' on platforms where we use localStorage for saving settings.

View File

@ -5,9 +5,8 @@ class Fetcher
return
# 4chan X catalog data
if (post = Index.replyData?["#{@boardID}.#{@postID}"])
if (post = Index.replyData?["#{@boardID}.#{@postID}"]) and (thread = g.threads["#{@boardID}.#{@threadID}"])
board = g.boards[@boardID]
thread = g.threads["#{@boardID}.#{@threadID}"]
post = new Post Build.postFromObject(post, @boardID), thread, board
post.isFetchedQuote = true
Main.callbackNodes 'Post', [post]