mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 11:21:32 +00:00
Don't show cake day indicator on the same year / day of user registration, instead show it the following years (#936)
This commit is contained in:
parent
8d24659892
commit
9c7c7b06df
1 changed files with 2 additions and 1 deletions
3
ui/src/utils.ts
vendored
3
ui/src/utils.ts
vendored
|
@ -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()
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue