mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-02-11 05:45:01 +09:00
refactor
This commit is contained in:
parent
d5ea00846a
commit
e311c386d4
@ -119,8 +119,16 @@ export async function common(createVue: () => App<Element>) {
|
|||||||
await defaultStore.ready;
|
await defaultStore.ready;
|
||||||
await deckStore.ready;
|
await deckStore.ready;
|
||||||
|
|
||||||
// 2024年4月1日JST以降に作成されたアカウントで、チュートリアルを完了していない通常ユーザーの場合、チュートリアルにリダイレクト
|
// 2024年10月1日JST以降に作成されたアカウントで、チュートリアルを完了していない通常ユーザーの場合、チュートリアルにリダイレクト
|
||||||
if (!instance.canSkipInitialTutorial && $i && !iAmModerator && new Date($i.createdAt).getTime() >= 1711897200000 && !claimedAchievements.includes('tutorialCompleted') && !location.pathname.startsWith('/onboarding') && !location.pathname.startsWith('/signup-complete')) {
|
if (
|
||||||
|
!instance.canSkipInitialTutorial &&
|
||||||
|
$i &&
|
||||||
|
!iAmModerator &&
|
||||||
|
new Date($i.createdAt).getTime() >= 1727708400000 &&
|
||||||
|
!claimedAchievements.includes('tutorialCompleted') &&
|
||||||
|
!location.pathname.startsWith('/onboarding') &&
|
||||||
|
!location.pathname.startsWith('/signup-complete')
|
||||||
|
) {
|
||||||
const param = new URLSearchParams();
|
const param = new URLSearchParams();
|
||||||
param.set('redirected_from', location.pathname + location.search + location.hash);
|
param.set('redirected_from', location.pathname + location.search + location.hash);
|
||||||
location.replace('/onboarding?' + param.toString());
|
location.replace('/onboarding?' + param.toString());
|
||||||
|
Loading…
Reference in New Issue
Block a user