Skip to content

Commit

Permalink
fix(mastodon-bot-yearprogress): Toot on new year's morning
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Jan 1, 2024
1 parent 160a1f9 commit bf124da
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export class YearProgressClient {

console.info(`progress: ${lastProgress} / ${percentage}`);

if (lastProgress < percentage) {
if (lastProgress < percentage || percentage === 0) {
console.info('Progress has changed, time to toot!');
return true;
}
Expand Down

0 comments on commit bf124da

Please sign in to comment.