mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Streak: report a 1 day streak after the first post
This commit is contained in:
parent
084df2b59d
commit
abea4f17b3
1 changed files with 1 additions and 1 deletions
|
|
@ -75,7 +75,7 @@ async function renderAccount(
|
|||
|
||||
if (streakStart && streakEnd) {
|
||||
const delta = streakEnd - streakStart;
|
||||
streakDays = Math.ceil(delta / 86400);
|
||||
streakDays = Math.max(Math.ceil(delta / 86400), 1);
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue