From: Filip Duricic Date: Sat, 11 Jul 2020 01:38:01 +0000 (+0200) Subject: Don't show cake day indicator on the same year / day of user registration, instead... X-Git-Url: http://these/git/?a=commitdiff_plain;h=9c7c7b06df0b513aaa36711539fa73d50ec0d09d;p=lemmy.git Don't show cake day indicator on the same year / day of user registration, instead show it the following years (#936) --- diff --git a/ui/src/utils.ts b/ui/src/utils.ts index 6276519b..2bede777 100644 --- a/ui/src/utils.ts +++ b/ui/src/utils.ts @@ -496,7 +496,8 @@ export function isCakeDay(published: string): boolean { return ( userCreationDate.date() === currentDate.date() && - userCreationDate.month() === currentDate.month() + userCreationDate.month() === currentDate.month() && + userCreationDate.year() !== currentDate.year() ); }