From 4c83b284cd1d96cb6d74e1472ea72a8ef53b06ea Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 13 Dec 2015 10:12:00 -0800 Subject: [PATCH] Fix forwardlink class on quotelinks to archived posts. --- src/classes/Fetcher.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/classes/Fetcher.coffee b/src/classes/Fetcher.coffee index 1851f432e..a2c1c15c6 100644 --- a/src/classes/Fetcher.coffee +++ b/src/classes/Fetcher.coffee @@ -23,9 +23,9 @@ class Fetcher $.add nodes.root, nodes.post # Indicate links to the containing post. - quoterURL = "/#{@quoter.board}/thread/#{@quoter.thread}#p#{@quoter}" for quote in clone.nodes.quotelinks.concat [clone.nodes.backlinks...] - if quote.pathname + quote.hash is quoterURL + {boardID, postID} = Get.postDataFromLink quote + if postID is @quoter.ID and boardID is @quoter.board.ID $.addClass quote, 'forwardlink' $.rmAll @root