ignore quote links inside [code] tags; they shoudn't be there and cause bugs

This commit is contained in:
ccd0 2014-08-16 08:06:06 -07:00
parent 85d614bb4b
commit 0d648f3b85

View File

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