Fix spoiler thumbnails when building threads.
This commit is contained in:
parent
4c00c6f9ae
commit
7fd72676cb
@ -264,6 +264,8 @@ Build =
|
|||||||
className: 'thread'
|
className: 'thread'
|
||||||
id: "t#{data.no}"
|
id: "t#{data.no}"
|
||||||
|
|
||||||
|
Build.spoilerRange[board] = data.custom_spoiler
|
||||||
|
|
||||||
for obj in [data].concat data.last_replies or []
|
for obj in [data].concat data.last_replies or []
|
||||||
$.add root, if post = g.posts["#{board}.#{obj.no}"]
|
$.add root, if post = g.posts["#{board}.#{obj.no}"]
|
||||||
post.nodes.root
|
post.nodes.root
|
||||||
|
|||||||
@ -32,8 +32,7 @@ ExpandComment =
|
|||||||
return
|
return
|
||||||
|
|
||||||
posts = JSON.parse(req.response).posts
|
posts = JSON.parse(req.response).posts
|
||||||
if spoilerRange = posts[0].custom_spoiler
|
Build.spoilerRange[g.BOARD] = posts[0].custom_spoiler
|
||||||
Build.spoilerRange[g.BOARD] = spoilerRange
|
|
||||||
|
|
||||||
for postObj in posts
|
for postObj in posts
|
||||||
break if postObj.no is post.ID
|
break if postObj.no is post.ID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user