I recently set up a Discourse instance to host blog comments. When someone posts the first comment, the embedded comment shows “2 Replies”. Before you ask, it’s not because the initial post is counted as a reply. That was fixed a while ago. Instead the problem seems to be the automatic listing notification:
Since every blog post comment topic starts unlisted, every first comment unlists the topic which, in turn, counts as a reply.
So I think the fix would be something closer to this pull request that excludes small actions when counting message replies. Listing a topic is
post_type 3, which is a
As an aside, the reply count is also off when looking at topic listings but it’s not quite so obvious because you aren’t looking at the count and the replies at the same time. And if you look at the topic itself, it’s not hard to figure out that the listing notice is counted. But when you look at the first few comments on a blog, it’s fairly obvious something is off because you see the count and the replies in one place. (And the listing notice isn’t displayed, thankfully.)