diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index 4f27764bb5..aff3d7a797 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -78,7 +78,7 @@ fetch('https://api.github.com/repos/kokonect-link/cherrypick/releases', { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) updateAvailable = true; }); diff --git a/packages/frontend/src/pages/admin/update.vue b/packages/frontend/src/pages/admin/update.vue index 8474477d45..4cd308bc01 100644 --- a/packages/frontend/src/pages/admin/update.vue +++ b/packages/frontend/src/pages/admin/update.vue @@ -121,7 +121,7 @@ onMounted(() => { method: 'GET', }).then(res => res.json()) .then(res => { - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if (skipCherryPickVersion < releasesCherryPick[0].tag_name) { skipVersion = false; @@ -133,7 +133,7 @@ onMounted(() => { method: 'GET', }).then(res => res.json()) .then(res => { - if (meta.enableReceivePrerelease) releasesMisskey = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesMisskey = res; else releasesMisskey = res.filter(x => x.prerelease === false); }); }); @@ -151,7 +151,7 @@ const whatIsNewMisskey = () => { }; const whatIsNewLatestMisskey = () => { - window.open(`https://misskey-hub.net/docs/releases.html#_${releasesMisskey[0].tag_name.replace(/\./g, '-')}`, '_blank'); + window.open(`https://github.com/misskey-dev/misskey/blob/develop/CHANGELOG.md#${releasesMisskey[0].tag_name.replace(/\./g, '')}`, '_blank'); }; const headerActions = $computed(() => [{ diff --git a/packages/frontend/src/ui/_common_/navbar-for-mobile.vue b/packages/frontend/src/ui/_common_/navbar-for-mobile.vue index 57569ab885..d7060fd272 100644 --- a/packages/frontend/src/ui/_common_/navbar-for-mobile.vue +++ b/packages/frontend/src/ui/_common_/navbar-for-mobile.vue @@ -83,7 +83,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; }); diff --git a/packages/frontend/src/ui/_common_/navbar.vue b/packages/frontend/src/ui/_common_/navbar.vue index aa241fc2e6..c1920b8931 100644 --- a/packages/frontend/src/ui/_common_/navbar.vue +++ b/packages/frontend/src/ui/_common_/navbar.vue @@ -97,7 +97,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; }); diff --git a/packages/frontend/src/ui/classic.header.vue b/packages/frontend/src/ui/classic.header.vue index 5cd13e6c25..6bbfac6636 100644 --- a/packages/frontend/src/ui/classic.header.vue +++ b/packages/frontend/src/ui/classic.header.vue @@ -88,7 +88,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; }); diff --git a/packages/frontend/src/ui/classic.sidebar.vue b/packages/frontend/src/ui/classic.sidebar.vue index 896247bcfa..71955c0cc7 100644 --- a/packages/frontend/src/ui/classic.sidebar.vue +++ b/packages/frontend/src/ui/classic.sidebar.vue @@ -94,7 +94,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; }); diff --git a/packages/frontend/src/ui/friendly/navbar-for-mobile.vue b/packages/frontend/src/ui/friendly/navbar-for-mobile.vue index 983aa751af..d9bd5b62de 100644 --- a/packages/frontend/src/ui/friendly/navbar-for-mobile.vue +++ b/packages/frontend/src/ui/friendly/navbar-for-mobile.vue @@ -87,7 +87,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; }); diff --git a/packages/frontend/src/ui/friendly/navbar.vue b/packages/frontend/src/ui/friendly/navbar.vue index cf070e3f9e..e89532a09e 100644 --- a/packages/frontend/src/ui/friendly/navbar.vue +++ b/packages/frontend/src/ui/friendly/navbar.vue @@ -104,7 +104,7 @@ if ($i.isAdmin || $i.isModerator) { }).then(res => res.json()) .then(async res => { const meta = await os.api('admin/meta'); - if (meta.enableReceivePrerelease) releasesCherryPick = res.filter(x => x.prerelease === true); + if (meta.enableReceivePrerelease) releasesCherryPick = res; else releasesCherryPick = res.filter(x => x.prerelease === false); if ((version < releasesCherryPick[0].tag_name) && (meta.skipCherryPickVersion < releasesCherryPick[0].tag_name)) controlPanelIndicated = true; });