Don't count capcode replies quotelinks as quotes.
This commit is contained in:
parent
29add2ff19
commit
36c1165deb
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user