Fix spoiler thumbnails when building threads.
This commit is contained in:
parent
4c00c6f9ae
commit
7fd72676cb
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user