Don't count capcode replies quotelinks as quotes.

This commit is contained in:
Nicolas Stepien 2012-09-01 03:42:46 +02:00
parent 29add2ff19
commit 36c1165deb
2 changed files with 4 additions and 0 deletions

View File

@ -715,6 +715,9 @@
quotelink = _ref2[_k];
if (quotelink.hash) {
this.nodes.quotelinks.push(quotelink);
if (quotelink.parentNode.parentNode.className === 'capcodeReplies') {
continue;
}
quotes["" + (quotelink.pathname.split('/')[1]) + "." + quotelink.hash.slice(2)] = true;
}
}

View File

@ -564,6 +564,7 @@ class Post
# Only add quotes that link to posts on an imageboard.
if quotelink.hash
@.nodes.quotelinks.push quotelink
continue if quotelink.parentNode.parentNode.className is 'capcodeReplies'
quotes["#{quotelink.pathname.split('/')[1]}.#{quotelink.hash[2..]}"] = true
@quotes = Object.keys quotes