From 07b5b52a2ccb8ae09b127664b3b076293eed07ca Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 2 Aug 2017 00:14:06 -0700 Subject: [PATCH] Detect archive post linked to when link is of form '#q'. --- src/Quotelinks/Quotify.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Quotelinks/Quotify.coffee b/src/Quotelinks/Quotify.coffee index 959567894..a7d4f7f0f 100644 --- a/src/Quotelinks/Quotify.coffee +++ b/src/Quotelinks/Quotify.coffee @@ -26,7 +26,7 @@ Quotify = return if link.hostname is 'boards.4chan.org' boardID = m[1] threadID = m[2] - postID = link.hash.match(/^#p?(\d+)$|$/)[1] or threadID + postID = link.hash.match(/^#[pq]?(\d+)$|$/)[1] or threadID if Redirect.to 'post', {boardID, postID} $.addClass link, 'quotelink' $.extend link.dataset, {boardID, threadID, postID}