Don't preParse isOP, as it's only used in the filter and is incorrect or ambiguous for inlined posts.
This commit is contained in:
parent
9a8fee2e3c
commit
ed3cc48d3f
@ -592,6 +592,7 @@
|
||||
node: function(post) {
|
||||
var el, filter, firstThread, isOP, key, result, thisThread, value, _i, _len, _ref;
|
||||
if (post.isInlined) return;
|
||||
post.isOP = post["class"] === 'op';
|
||||
isOP = post.isOP, el = post.el;
|
||||
for (key in Filter.filters) {
|
||||
value = Filter[key](post);
|
||||
@ -4008,7 +4009,6 @@
|
||||
"class": klass,
|
||||
id: node.getElementsByTagName('input')[0].name,
|
||||
threadId: g.THREAD_ID || $.x('ancestor::div[@class="thread"]', node).firstChild.id,
|
||||
isOP: klass === 'op',
|
||||
isInlined: /\binline\b/.test(klass),
|
||||
filesize: node.getElementsByClassName('filesize')[0] || false,
|
||||
quotes: node.getElementsByClassName('quotelink'),
|
||||
|
||||
@ -524,6 +524,7 @@ Filter =
|
||||
|
||||
node: (post) ->
|
||||
return if post.isInlined
|
||||
post.isOP = post.class is 'op'
|
||||
{isOP, el} = post
|
||||
for key of Filter.filters
|
||||
value = Filter[key] post
|
||||
@ -3365,7 +3366,6 @@ Main =
|
||||
class: klass
|
||||
id: node.getElementsByTagName('input')[0].name
|
||||
threadId: g.THREAD_ID or $.x('ancestor::div[@class="thread"]', node).firstChild.id
|
||||
isOP: klass is 'op'
|
||||
isInlined: /\binline\b/.test klass
|
||||
filesize: node.getElementsByClassName('filesize')[0] or false
|
||||
quotes: node.getElementsByClassName 'quotelink'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user