diff --git a/src/Quotelinks/Quotify.coffee b/src/Quotelinks/Quotify.coffee index f2a4ab0b1..2684fa518 100755 --- a/src/Quotelinks/Quotify.coffee +++ b/src/Quotelinks/Quotify.coffee @@ -58,14 +58,14 @@ Quotify = $.extend a.dataset, {boardID, threadID: post.thread.ID, postID} - else if redirect = Redirect.to 'thread', {boardID, threadID: 0, postID} - # Replace the .deadlink span if we can redirect. + else if (redirect = Redirect.to 'thread', {boardID, threadID: 0, postID}) or (fetchable = Redirect.to 'post', {boardID, postID}) + # Replace the .deadlink span if we can redirect or fetch the post. a = $.el 'a', - href: redirect + href: redirect or 'javascript:;' className: 'deadlink' target: '_blank' textContent: "#{quote}\u00A0(Dead)" - if Redirect.to 'post', {boardID, postID} + if fetchable # Make it function as a normal quote if we can fetch the post. $.addClass a, 'quotelink' $.extend a.dataset, {boardID, postID}