Use g.SITE.selectors.replyOriginal to count replies.
This commit is contained in:
parent
9a3051ba71
commit
ce099ae6de
@ -145,7 +145,7 @@ ThreadHiding =
|
|||||||
a
|
a
|
||||||
|
|
||||||
makeStub: (thread, root) ->
|
makeStub: (thread, root) ->
|
||||||
numReplies = $$(g.SITE.selectors.postContainer + g.SITE.selectors.relative.replyHighlight, root).length
|
numReplies = $$(g.SITE.selectors.replyOriginal, root).length
|
||||||
numReplies += +summary.textContent.match /\d+/ if summary = $ g.SITE.selectors.summary, root
|
numReplies += +summary.textContent.match /\d+/ if summary = $ g.SITE.selectors.summary, root
|
||||||
|
|
||||||
a = ThreadHiding.makeButton thread, 'show'
|
a = ThreadHiding.makeButton thread, 'show'
|
||||||
|
|||||||
@ -58,7 +58,7 @@ ExpandThread =
|
|||||||
return if @ isnt status.req # aborted
|
return if @ isnt status.req # aborted
|
||||||
delete status.req
|
delete status.req
|
||||||
ExpandThread.parse @, thread, a
|
ExpandThread.parse @, thread, a
|
||||||
status.numReplies = $$(g.SITE.selectors.postContainer + g.SITE.selectors.relative.replyHighlight, thread.nodes.root).length
|
status.numReplies = $$(g.SITE.selectors.replyOriginal, thread.nodes.root).length
|
||||||
|
|
||||||
contract: (thread, a, threadRoot) ->
|
contract: (thread, a, threadRoot) ->
|
||||||
status = ExpandThread.statuses[thread]
|
status = ExpandThread.statuses[thread]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user