Replies column says "-1" on discourse meta

Just caught this now, please see the screenshot:

2 Likes

The database record is what’s wrong here:

2 Likes

Is this an “evaluate 0 as false” thing?
ie. Ruby “truthiness” vs. Ember “truthiness”

No, it’s a math thing: 0 minus 1 is -1.

The database record was probably set wrong from some old code that isn’t there anymore, because the topic is so old.

Thanks.

Those pesky logic errors !

Reminds me of my early regex days
It seems to work, until …