Use g.SITE.selectors.replyOriginal to count replies.

This commit is contained in:
ccd0 2019-07-22 19:35:40 -07:00
parent 9a3051ba71
commit ce099ae6de
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ ThreadHiding =
a
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
a = ThreadHiding.makeButton thread, 'show'

View File

@ -58,7 +58,7 @@ ExpandThread =
return if @ isnt status.req # aborted
delete status.req
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) ->
status = ExpandThread.statuses[thread]