From 0d648f3b85ac874d3af8a5645b45d3a938a1a125 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 16 Aug 2014 08:06:06 -0700 Subject: [PATCH] ignore quote links inside [code] tags; they shoudn't be there and cause bugs --- src/General/lib/post.class | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/General/lib/post.class b/src/General/lib/post.class index feecfcc57..66bb7966d 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -114,7 +114,9 @@ class Post parseQuotes: -> @quotes = [] - for quotelink in $$ '.quotelink', @nodes.comment + # XXX https://github.com/4chan/4chan-JS/issues/77 + # 4chan currently creates quote links inside [code] tags; ignore them + for quotelink in $$ ':not(pre) > .quotelink', @nodes.comment @parseQuote quotelink return