Fix spoiler thumbnails when building threads.

This commit is contained in:
Mayhem 2013-11-02 13:56:59 +01:00
parent 4c00c6f9ae
commit 7fd72676cb
2 changed files with 3 additions and 2 deletions

View File

@ -264,6 +264,8 @@ Build =
className: 'thread'
id: "t#{data.no}"
Build.spoilerRange[board] = data.custom_spoiler
for obj in [data].concat data.last_replies or []
$.add root, if post = g.posts["#{board}.#{obj.no}"]
post.nodes.root

View File

@ -32,8 +32,7 @@ ExpandComment =
return
posts = JSON.parse(req.response).posts
if spoilerRange = posts[0].custom_spoiler
Build.spoilerRange[g.BOARD] = spoilerRange
Build.spoilerRange[g.BOARD] = posts[0].custom_spoiler
for postObj in posts
break if postObj.no is post.ID