diff --git a/packages/backend/src/server/api/endpoints/latest-version.ts b/packages/backend/src/server/api/endpoints/latest-version.ts index 4b12f1bdd..72beaca04 100644 --- a/packages/backend/src/server/api/endpoints/latest-version.ts +++ b/packages/backend/src/server/api/endpoints/latest-version.ts @@ -14,18 +14,7 @@ export const paramDef = { } as const; export default define(meta, paramDef, async () => { - let tag_name: string; - const pattern = /"version": "(.*)",$/m; - - await fetch( - "https://code.naskya.net/naskya/firefish/source-by/main/package.json", - ) - .then((response) => response.text()) - .then((text) => { - tag_name = pattern.exec(text)[1]; - }); - return { - tag_name, + tag_name: "neko", }; }); diff --git a/packages/client/src/pages/admin/index.vue b/packages/client/src/pages/admin/index.vue index 53f696d9d..163af29d6 100644 --- a/packages/client/src/pages/admin/index.vue +++ b/packages/client/src/pages/admin/index.vue @@ -42,15 +42,6 @@ i18n.ts.configure }} - {{ i18n.ts.updateAvailable }} - {{ i18n.ts.check }} @@ -113,7 +104,6 @@ const noBotProtection = !instance.enableRecaptcha; const noEmailServer = !instance.enableEmail; const thereIsUnresolvedAbuseReport = ref(false); -const updateAvailable = ref(false); const currentPage = computed(() => router.currentRef.value.child); os.api("admin/abuse-user-reports", { @@ -123,13 +113,6 @@ os.api("admin/abuse-user-reports", { if (reports?.length > 0) thereIsUnresolvedAbuseReport.value = true; }); -if (defaultStore.state.showAdminUpdates) { - os.api("latest-version").then((res) => { - if (res == null || res.tag_name == null) return; - updateAvailable.value = !version.startsWith(res.tag_name); - }); -} - const NARROW_THRESHOLD = 600; const ro = new ResizeObserver((entries, observer) => { if (entries.length === 0) return;