From b7ddfa5c661d210749a626ae93331976e147d58c Mon Sep 17 00:00:00 2001 From: Mayhem Date: Tue, 13 Aug 2013 19:10:57 +0200 Subject: [PATCH] Shave a line and move a few things around in QuoteOP. --- src/Quotelinks/QuoteOP.coffee | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Quotelinks/QuoteOP.coffee b/src/Quotelinks/QuoteOP.coffee index 281b0241f..4b39298a8 100644 --- a/src/Quotelinks/QuoteOP.coffee +++ b/src/Quotelinks/QuoteOP.coffee @@ -12,18 +12,17 @@ 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 for quotelink in quotelinks quotelink.textContent = quotelink.textContent.replace QuoteOP.text, '' - op = (if @isClone then @context else @).thread.fullID + {fullID} = (if @isClone then @context else @).thread # add (OP) to quotes quoting this context's OP. - return unless op in quotes - for quotelink in quotelinks + return unless fullID in quotes + for quotelink in @nodes.quotelinks {boardID, postID} = Get.postDataFromLink quotelink - if "#{boardID}.#{postID}" is op + if "#{boardID}.#{postID}" is fullID $.add quotelink, $.tn QuoteOP.text return