From f11d0461d7a61f50190a04f90bbf3150c933b609 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=BE=E3=81=A3=E3=81=A1=E3=82=83=E3=81=A8=E3=83=BC?= =?UTF-8?q?=E3=81=AB=E3=82=85?= <17376330+u1-liquid@users.noreply.github.com> Date: Sat, 17 Aug 2024 07:00:26 +0900 Subject: [PATCH] =?UTF-8?q?spec(profile):=20=E7=9B=B8=E4=BA=92=E3=83=AA?= =?UTF-8?q?=E3=83=B3=E3=82=AF=E3=81=AE=E5=9E=8B=E5=AE=9A=E7=BE=A9=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(MisskeyIO#706)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/src/models/UserProfile.ts | 1 + packages/backend/src/models/json-schema/user.ts | 2 +- packages/backend/src/types.ts | 2 +- packages/misskey-js/src/autogen/types.ts | 1 + 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/models/UserProfile.ts b/packages/backend/src/models/UserProfile.ts index c493ebfcc..6a1d68625 100644 --- a/packages/backend/src/models/UserProfile.ts +++ b/packages/backend/src/models/UserProfile.ts @@ -50,6 +50,7 @@ export class MiUserProfile { name: string | null; mutualLinks: { id: string; + url: string; fileId: MiDriveFile['id']; description: string | null; imgSrc: string; diff --git a/packages/backend/src/models/json-schema/user.ts b/packages/backend/src/models/json-schema/user.ts index 409212749..7aa4350b3 100644 --- a/packages/backend/src/models/json-schema/user.ts +++ b/packages/backend/src/models/json-schema/user.ts @@ -398,7 +398,7 @@ export const packedUserDetailedNotMeOnlySchema = { type: 'object', properties: { id: { type: 'string', format: 'misskey:id' }, - url: { type: 'string' }, + url: { type: 'string', format: 'url' }, fileId: { type: 'string', format: 'misskey:id' }, description: { type: 'string', nullable: true }, imgSrc: { type: 'string' }, diff --git a/packages/backend/src/types.ts b/packages/backend/src/types.ts index 8bb3ede04..2b5e901fb 100644 --- a/packages/backend/src/types.ts +++ b/packages/backend/src/types.ts @@ -318,7 +318,7 @@ export type ModerationLogPayloads = { unsetUserMutualLink: { userId: string; userUsername: string; - userMutualLinkSections: { name: string | null; mutualLinks: { fileId: string; description: string | null; imgSrc: string; }[]; }[] | [] + userMutualLinkSections: { name: string | null; mutualLinks: { id: string; url: string; fileId: string; description: string | null; imgSrc: string; }[]; }[] | [] } }; diff --git a/packages/misskey-js/src/autogen/types.ts b/packages/misskey-js/src/autogen/types.ts index f428942bf..508cc739a 100644 --- a/packages/misskey-js/src/autogen/types.ts +++ b/packages/misskey-js/src/autogen/types.ts @@ -3847,6 +3847,7 @@ export type components = { mutualLinks: ({ /** Format: misskey:id */ id: string; + /** Format: url */ url: string; /** Format: misskey:id */ fileId: string;