Wrong hours number in the message saying "You've reached your likes today"

סיכום מבוסס בינה מלאכותית

Users across multiple Discourse communities, including Discourse Meta and Infinite Flight Community, reported a bug where the “You’ve reached your likes today” message displayed an absurdly large number of hours (e.g., 419,691 hours or ~47 years) before likes would reset. The issue wasn’t merely cosmetic — as fefrei noted, the rate-limiting logic itself was broken, preventing users from liking even their first post of the day. itsbhanusharma, schyllberg, and Captain_Ed confirmed the bug affected multiple sites. While some users like AustralianFlyer could still like on Meta but not elsewhere, others like itsbhanusharma were blocked entirely. codinghorror and sam acknowledged the issue, with sam confirming a fix was being deployed to hosted customers via this commit. Users like ma0sm confirmed the fix was working post-deployment. The bug was treated as non-priority initially but escalated due to its functional impact on core user interaction.

Today at Discourse Meta I encountered this limit for the very first time in last 3 years. Seems like the number is incorrect:

Just a minor non-priority fix.

7 לייקים

Sorry I saw this one first @schungx

2 לייקים

Happening to me as well!

You’ve reached the maximum number of likes today. Please wait 419691.17924106785 hours before trying again.

לייק 1

Same thing going on @ IFC.

https://community.infinite-flight.com/t/47-years-for-likes-to-come-back/168803

6 לייקים

Unfortunately this started happening over at the Infinite Flight Community as well (as linked above).

3 לייקים

Actually, I think it is fixed only here on the Discourse Meta site. Can anyone else confirm?

3 לייקים

I doubt in 47.3 years I will be using Discourse

5 לייקים

Oh, this is actually pretty serious: This isn’t just about the incorrect display, the rate limiting logic itself is broken. I just got this message for my first like of the day.

9 לייקים

I can like on here, but not on the IFC.

4 לייקים

And I can not like here or on my comunity forum! ..

3 לייקים

Just making sure @sam has seen this.

לייק 1

I saw this, @zogstrip is deploying a fix to our hosted customers.

6 לייקים

We’ll be waiting at the IFC :wink:

3 לייקים

This fixes the issue

https://github.com/discourse/discourse/commit/5a9622163df65a77979ebe24a6bb6e9e12f09400

Will get it deployed shortly, apologies

15 לייקים

Great work on this team, Shaun and the lads at community.drownedinsound.com will be chuffed to hear the news!

לייק 1

Working for us now, thanks guys!

7 לייקים