Fix QuoteOP for cross-board clones quoting their thread's OPs.

This commit is contained in:
Mayhem 2013-08-15 22:09:45 +02:00
parent 6412503d1e
commit 0f2dfcdaeb

View File

@ -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