Still being different for the sake of being difficult
This commit is contained in:
parent
0ac6747810
commit
dd4d979276
@ -1005,7 +1005,7 @@
|
||||
return;
|
||||
}
|
||||
fullID = "" + match[1] + "." + match[2];
|
||||
if (this.quotes.indexOf(fullID) === -1) {
|
||||
if (!this.quotes.contains(fullID)) {
|
||||
return this.quotes.push(fullID);
|
||||
}
|
||||
};
|
||||
|
||||
@ -1011,7 +1011,7 @@
|
||||
return;
|
||||
}
|
||||
fullID = "" + match[1] + "." + match[2];
|
||||
if (this.quotes.indexOf(fullID) === -1) {
|
||||
if (!this.quotes.contains(fullID)) {
|
||||
return this.quotes.push(fullID);
|
||||
}
|
||||
};
|
||||
|
||||
@ -52,7 +52,6 @@ class Post
|
||||
threadID: @thread
|
||||
postID: @ID
|
||||
|
||||
|
||||
@parseComment()
|
||||
@parseQuotes()
|
||||
@parseFile(that)
|
||||
@ -87,7 +86,7 @@ class Post
|
||||
for quotelink in $$ '.quotelink', @nodes.comment
|
||||
@parseQuote quotelink
|
||||
return
|
||||
|
||||
|
||||
parseQuote: (quotelink) ->
|
||||
# Only add quotes that link to posts on an imageboard.
|
||||
# Don't add:
|
||||
@ -107,10 +106,10 @@ class Post
|
||||
|
||||
# Don't count capcode replies as quotes in OPs. (Admin/Mod/Dev Replies: ...)
|
||||
return if @isClone or !@isReply and $.hasClass quotelink.parentNode.parentNode, 'capcodeReplies'
|
||||
|
||||
|
||||
# ES6 Set when?
|
||||
fullID = "#{match[1]}.#{match[2]}"
|
||||
@quotes.push fullID if @quotes.indexOf(fullID) is -1
|
||||
@quotes.push fullID unless @quotes.contains fullID
|
||||
|
||||
parseFile: (that) ->
|
||||
return unless (fileEl = $ '.file', @nodes.post) and thumb = $ 'img[data-md5]', fileEl
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user