diff --git a/src/Quotelinks/Quotify.coffee b/src/Quotelinks/Quotify.coffee index feb35af40..c720a7c6b 100755 --- a/src/Quotelinks/Quotify.coffee +++ b/src/Quotelinks/Quotify.coffee @@ -1,6 +1,6 @@ Quotify = init: -> - return if g.VIEW is 'catalog' or !Conf['Resurrect Quotes'] + return if g.VIEW is 'catalog' or !Conf['Resurrect Quotes'] and g.BOARD.ID isnt 'pol' if Conf['Comment Expansion'] ExpandComment.callbacks.push @node @@ -58,7 +58,16 @@ Quotify = $.extend a.dataset, {boardID, threadID: post.thread.ID, postID} - else + else if @board.ID is boardID is 'pol' and postID.length is 9 and postID[-2] is postID[-1] + # XXX Misquotes due to fake doubles on /pol/. Assume they are all intra-thread. + postID = postID[...-1] + quoteID = "#{boardID}.#{postID}" + a = $.el 'a', + href: Build.postURL boardID, @thread.ID, postID + className: 'quotelink' + textContent: quote + + else if Conf['Resurrect Quotes'] redirect = Redirect.to 'thread', {boardID, threadID: 0, postID} fetchable = Redirect.to 'post', {boardID, postID} if redirect or fetchable