Shave a line and move a few things around in QuoteOP.
This commit is contained in:
parent
46c50baaba
commit
b7ddfa5c66
@ -12,18 +12,17 @@ QuoteOP =
|
|||||||
return if @isClone and @thread is @context.thread
|
return if @isClone and @thread is @context.thread
|
||||||
# Stop there if there's no quotes in that post.
|
# Stop there if there's no quotes in that post.
|
||||||
return unless (quotes = @quotes).length
|
return unless (quotes = @quotes).length
|
||||||
{quotelinks} = @nodes
|
|
||||||
|
|
||||||
# rm (OP) from cross-thread quotes.
|
# rm (OP) from cross-thread quotes.
|
||||||
if @isClone and @thread.fullID in quotes
|
if @isClone and @thread.fullID in quotes
|
||||||
for quotelink in quotelinks
|
for quotelink in quotelinks
|
||||||
quotelink.textContent = quotelink.textContent.replace QuoteOP.text, ''
|
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.
|
# add (OP) to quotes quoting this context's OP.
|
||||||
return unless op in quotes
|
return unless fullID in quotes
|
||||||
for quotelink in quotelinks
|
for quotelink in @nodes.quotelinks
|
||||||
{boardID, postID} = Get.postDataFromLink quotelink
|
{boardID, postID} = Get.postDataFromLink quotelink
|
||||||
if "#{boardID}.#{postID}" is op
|
if "#{boardID}.#{postID}" is fullID
|
||||||
$.add quotelink, $.tn QuoteOP.text
|
$.add quotelink, $.tn QuoteOP.text
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user