From 37b75401c7f11d2827b73a5a0376b447358d891e Mon Sep 17 00:00:00 2001 From: naskya Date: Wed, 27 Dec 2023 04:39:01 +0900 Subject: [PATCH] chore: stop requiring misskeyVersion in preference backups --- README.md | 1 + packages/client/src/pages/settings/preferences-backups.vue | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d1c96cac1..17855aeb9 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ ## 細かい変更点 +- 設定のバックアップファイルに `misskeyVersion` の値が含まれていなくても警告しないように変更 - マージされていない本家版へのプルリクエストを独断でマージ - RTL Layout Support ([!10452](https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10452)) - Add language picker to post form ([!10616](https://git.joinfirefish.org/firefish/firefish/-/merge_requests/10616)) diff --git a/packages/client/src/pages/settings/preferences-backups.vue b/packages/client/src/pages/settings/preferences-backups.vue index 794c60e18..67a64eff5 100644 --- a/packages/client/src/pages/settings/preferences-backups.vue +++ b/packages/client/src/pages/settings/preferences-backups.vue @@ -188,8 +188,8 @@ function validate(profile: unknown): void { throw new Error("Unnecessary properties exist"); if (!profile.name) throw new Error("Missing required prop: name"); - if (!profile.misskeyVersion) - throw new Error("Missing required prop: misskeyVersion"); + // if (!profile.misskeyVersion) + // throw new Error("Missing required prop: misskeyVersion"); // Check if createdAt and updatedAt is Date // https://zenn.dev/lollipop_onl/articles/eoz-judge-js-invalid-date