From 1cd478ab365ffb62c465a0114da5f701daf263a7 Mon Sep 17 00:00:00 2001 From: Lilly Schramm Date: Sun, 22 Jun 2025 01:13:21 +0200 Subject: [PATCH] feat(frontend): Respect New Bio Length Setting --- packages/frontend/src/pages/settings/profile.vue | 10 +++------- packages/misskey-js/src/autogen/types.ts | 2 ++ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/packages/frontend/src/pages/settings/profile.vue b/packages/frontend/src/pages/settings/profile.vue index 21bc74326a..f44c8d8514 100644 --- a/packages/frontend/src/pages/settings/profile.vue +++ b/packages/frontend/src/pages/settings/profile.vue @@ -37,7 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + @@ -195,6 +195,7 @@ import { langmap } from '@/utility/langmap.js'; import { definePage } from '@/page.js'; import { claimAchievement } from '@/utility/achievements.js'; import { store } from '@/store.js'; +import { instance } from '@/instance.js'; import MkInfo from '@/components/MkInfo.vue'; import MkTextarea from '@/components/MkTextarea.vue'; @@ -270,18 +271,13 @@ function save() { } os.apiWithDialog('i/update', { // 空文字列をnullにしたいので??は使うな - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing name: profile.name || null, - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing description: profile.description || null, - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing followedMessage: profile.followedMessage || null, - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing + // eslint-disable-next-line id-denylist location: profile.location || null, - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing birthday: profile.birthday || null, listenbrainz: profile.listenbrainz || null, - // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing lang: profile.lang || null, isBot: !!profile.isBot, isCat: !!profile.isCat, diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index 97356e0c6e..37856f7c46 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -5659,6 +5659,8 @@ export type components = { maxRemoteCwLength: number; maxAltTextLength: number; maxRemoteAltTextLength: number; + maxBioLength: number; + maxRemoteBioLength: number; ads: { /** * Format: id