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;