Fix "Allow post fetching to work if no archive is selected for thread redirection."

fixes commit c21a8b217f87336b71212169ed71db0c81cb63ee
This commit is contained in:
ccd0 2014-08-09 18:14:02 -07:00
parent d7d14f10db
commit 6228248c15

View File

@ -58,7 +58,10 @@ Quotify =
$.extend a.dataset, {boardID, threadID: post.thread.ID, postID} $.extend a.dataset, {boardID, threadID: post.thread.ID, postID}
else if (redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}) or (fetchable = Redirect.to 'post', {boardID, postID}) else
redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}
fetchable = Redirect.to 'post', {boardID, postID}
if redirect or fetchable
# Replace the .deadlink span if we can redirect or fetch the post. # Replace the .deadlink span if we can redirect or fetch the post.
a = $.el 'a', a = $.el 'a',
href: redirect or 'javascript:;' href: redirect or 'javascript:;'