Moin
4 ביולי, 2026, 8:54am
1
This is a screenshot from the list of members of the @team group. It looks like there is a problem with the dates of users whose profiles are hidden, resulting in the names being barely visible.
I cannot @mention the team group, so no need to edit this to avoid notifications.
2 לייקים
Thanks! this is easy to miss as an admin, a fix is on the way
main ← fix-invalid-date-string
merged 03:29PM - 06 Jul 26 UTC
Reported here: https://meta.discourse.org/t/group-members-last-visited-and-last-… posted-date-of-hidden-profiles/406816
When someone's profile is hidden, `last_seen_at` and `last_posted_at` are hidden. The group user directory calls `{{dAgeWithTooltip m.last_seen_at format="medium"}}`, which does `new Date(undefined)` resulting in `Invalid Date`, which is truthy! This passes the `!date` check in `autoUpdatingRelativeAge` and results in a broken translation:
<img width="886" height="86" alt="image" src="https://github.com/user-attachments/assets/6e18cc82-82cd-429e-8c92-a4351051ac2e" />
Adding `isNaN(date.getTime())` avoids the case where we attempt to process a `new Date()` result that's not a date.
לייק 1