From 626d701756c1ff156f3e25bc5bcad4e8a25dad90 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Tue, 15 Apr 2014 01:05:39 -0700 Subject: [PATCH] fix (You) in backlinks --- src/Quotelinks/QuoteBacklink.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Quotelinks/QuoteBacklink.coffee b/src/Quotelinks/QuoteBacklink.coffee index 42e01d0ad..334965ab1 100755 --- a/src/Quotelinks/QuoteBacklink.coffee +++ b/src/Quotelinks/QuoteBacklink.coffee @@ -24,10 +24,11 @@ QuoteBacklink = cb: @secondNode firstNode: -> return if @isClone or !@quotes.length + markYours = Conf['Quick Reply'] and Conf['Mark Quotes of You'] and QR.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID} a = $.el 'a', href: "/#{@board}/res/#{@thread}#p#{@}" className: if @isHidden then 'filtered backlink' else 'backlink' - textContent: (QuoteBacklink.funk @ID) + (if Conf['Mark Quotes of You'] and @info.yours then '\u00A0(You)' else '') + textContent: (QuoteBacklink.funk @ID) + (if markYours then '\u00A0(You)' else '') for quote in @quotes containers = [QuoteBacklink.getContainer quote] if (post = g.posts[quote]) and post.nodes.backlinkContainer