diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-09-05 17:49:34 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-05 09:49:34 -0500 |
commit | 124cfb57c7f794cb54da09ce05b7101767156e0a (patch) | |
tree | 736a91df620abff6f8107fef31ca7b5e205c3449 | |
parent | ac0c4ef2d954a746d3696e6fb268c922a291e908 (diff) | |
download | voidsky-124cfb57c7f794cb54da09ce05b7101767156e0a.tar.zst |
only show bookmarks nux to existing users (#8988)
-rw-r--r-- | src/components/dialogs/nuxs/index.tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/dialogs/nuxs/index.tsx b/src/components/dialogs/nuxs/index.tsx index bb15c5f63..4076708fc 100644 --- a/src/components/dialogs/nuxs/index.tsx +++ b/src/components/dialogs/nuxs/index.tsx @@ -17,6 +17,7 @@ import {BookmarksAnnouncement} from '#/components/dialogs/nuxs/BookmarksAnnounce * NUXs */ import {isSnoozed, snooze, unsnooze} from '#/components/dialogs/nuxs/snoozing' +import {isExistingUserAsOf} from './utils' type Context = { activeNux: Nux | undefined @@ -34,6 +35,12 @@ const queuedNuxs: { }[] = [ { id: Nux.BookmarksAnnouncement, + enabled: ({currentProfile}) => { + return isExistingUserAsOf( + '2025-09-08T00:00:00.000Z', + currentProfile.createdAt, + ) + }, }, ] |