Fix #1262.
This commit is contained in:
parent
667abe7480
commit
cec8bf186e
@ -118,17 +118,18 @@ Get =
|
|||||||
Build.spoilerRange[boardID] = posts[0].custom_spoiler
|
Build.spoilerRange[boardID] = posts[0].custom_spoiler
|
||||||
for post in posts
|
for post in posts
|
||||||
break if post.no is postID # we found it!
|
break if post.no is postID # we found it!
|
||||||
if post.no > postID
|
|
||||||
# The post can be deleted by the time we check a quote.
|
if post.no isnt postID
|
||||||
if url = Redirect.to 'post', {boardID, postID}
|
# The post can be deleted by the time we check a quote.
|
||||||
$.cache url,
|
if url = Redirect.to 'post', {boardID, postID}
|
||||||
-> Get.archivedPost @, boardID, postID, root, context
|
$.cache url,
|
||||||
,
|
-> Get.archivedPost @, boardID, postID, root, context
|
||||||
withCredentials: url.archive.withCredentials
|
,
|
||||||
else
|
withCredentials: url.archive.withCredentials
|
||||||
$.addClass root, 'warning'
|
else
|
||||||
root.textContent = "Post No.#{postID} was not found."
|
$.addClass root, 'warning'
|
||||||
return
|
root.textContent = "Post No.#{postID} was not found."
|
||||||
|
return
|
||||||
|
|
||||||
board = g.boards[boardID] or
|
board = g.boards[boardID] or
|
||||||
new Board boardID
|
new Board boardID
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user