Replies column says "-1" on discourse meta

(Anton) #1

Just caught this now, please see the screenshot:

(Kane York) #2

The database record is what’s wrong here:

(Mittineague) #3

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

(Kane York) #4

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.

(Mittineague) #5


Those pesky logic errors !

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

(Jeff Atwood) #6