diff --git a/CHANGELOG_YOJO.md b/CHANGELOG_YOJO.md index ec5fc0fe71..c77c9286fc 100644 --- a/CHANGELOG_YOJO.md +++ b/CHANGELOG_YOJO.md @@ -9,6 +9,7 @@ ### Server - Fix: PersonのserchableByが正しく連合できていないのを修正[#556](https://github.com/yojo-art/cherrypick/pull/556) +- Fix: SerchableByが未設定の時にプライバシーを更新できないことがある[#567](https://github.com/yojo-art/cherrypick/pull/567) - Enhance: `/users/${id}`に`Accept: application/ld+json`ではないリクエストが来たとき`/@${username}`にリダイレクトするように [#554](https://github.com/yojo-art/cherrypick/pull/554) ## 1.1.0 diff --git a/packages/backend/src/server/api/endpoints/i/update.ts b/packages/backend/src/server/api/endpoints/i/update.ts index 9876fc39dc..32cae8cec5 100644 --- a/packages/backend/src/server/api/endpoints/i/update.ts +++ b/packages/backend/src/server/api/endpoints/i/update.ts @@ -189,7 +189,11 @@ export const paramDef = { isLocked: { type: 'boolean' }, isExplorable: { type: 'boolean' }, isIndexable: { type: 'boolean' }, - searchableBy: { type: 'string', enum: ['public', 'followersAndReacted', 'reactedOnly', 'private'] }, + searchableBy: { + type: 'string', + enum: ['public', 'followersAndReacted', 'reactedOnly', 'private', null], + nullable: true, + description: '検索許可SearchableByの値を指定しますデフォルトはnull(isIndexableを参照)' }, hideOnlineStatus: { type: 'boolean' }, publicReactions: { type: 'boolean' }, carefulBot: { type: 'boolean' }, diff --git a/packages/cherrypick-js/src/autogen/types.ts b/packages/cherrypick-js/src/autogen/types.ts index d708581b6b..4f0d34083e 100644 --- a/packages/cherrypick-js/src/autogen/types.ts +++ b/packages/cherrypick-js/src/autogen/types.ts @@ -20282,8 +20282,11 @@ export type operations = { isLocked?: boolean; isExplorable?: boolean; isIndexable?: boolean; - /** @enum {string} */ - searchableBy?: 'public' | 'followersAndReacted' | 'reactedOnly' | 'private'; + /** + * @description 検索許可SearchableByの値を指定しますデフォルトはnull(isIndexableを参照) + * @enum {string|null} + */ + searchableBy?: 'public' | 'followersAndReacted' | 'reactedOnly' | 'private' | null; hideOnlineStatus?: boolean; publicReactions?: boolean; carefulBot?: boolean;