Streak: report a 1 day streak after the first post

This commit is contained in:
Alex Gleason 2025-02-06 14:44:01 -06:00
parent 084df2b59d
commit abea4f17b3
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -75,7 +75,7 @@ async function renderAccount(
if (streakStart && streakEnd) { if (streakStart && streakEnd) {
const delta = streakEnd - streakStart; const delta = streakEnd - streakStart;
streakDays = Math.ceil(delta / 86400); streakDays = Math.max(Math.ceil(delta / 86400), 1);
} }
return { return {