From 0f2dfcdaeb26556c1b17b5751dbded3229c284a6 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Thu, 15 Aug 2013 22:09:45 +0200 Subject: [PATCH] Fix QuoteOP for cross-board clones quoting their thread's OPs. --- src/Quotelinks/QuoteOP.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Quotelinks/QuoteOP.coffee b/src/Quotelinks/QuoteOP.coffee index 4b39298a8..12fec65dc 100644 --- a/src/Quotelinks/QuoteOP.coffee +++ b/src/Quotelinks/QuoteOP.coffee @@ -12,6 +12,7 @@ QuoteOP = return if @isClone and @thread is @context.thread # Stop there if there's no quotes in that post. return unless (quotes = @quotes).length + {quotelinks} = @nodes # rm (OP) from cross-thread quotes. if @isClone and @thread.fullID in quotes @@ -21,7 +22,7 @@ QuoteOP = {fullID} = (if @isClone then @context else @).thread # add (OP) to quotes quoting this context's OP. return unless fullID in quotes - for quotelink in @nodes.quotelinks + for quotelink in quotelinks {boardID, postID} = Get.postDataFromLink quotelink if "#{boardID}.#{postID}" is fullID $.add quotelink, $.tn QuoteOP.text