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