diff --git a/packages/backend/src/server/api/endpoints/i/known-as.ts b/packages/backend/src/server/api/endpoints/i/known-as.ts index d4d9061b30..0d0c06180a 100644 --- a/packages/backend/src/server/api/endpoints/i/known-as.ts +++ b/packages/backend/src/server/api/endpoints/i/known-as.ts @@ -38,14 +38,14 @@ export const meta = { id: "bf326f31-d430-4f97-9933-5d61e4d48a23", }, alreadyMoved: { - message: 'You have already moved your account.', - code: 'ALREADY_MOVED', - id: '56f20ec9-fd06-4fa5-841b-edd6d7d4fa31', + message: "You have already moved your account.", + code: "ALREADY_MOVED", + id: "56f20ec9-fd06-4fa5-841b-edd6d7d4fa31", }, yourself: { - message: 'You can\'t set yourself as your own alias.', - code: 'FORBIDDEN_TO_SET_YOURSELF', - id: '25c90186-4ab0-49c8-9bba-a1fa6c202ba4', + message: "You can't set yourself as your own alias.", + code: "FORBIDDEN_TO_SET_YOURSELF", + id: "25c90186-4ab0-49c8-9bba-a1fa6c202ba4", }, }, } as const; @@ -54,10 +54,10 @@ export const paramDef = { type: "object", properties: { alsoKnownAs: { - type: 'array', + type: "array", maxItems: 10, uniqueItems: true, - items: { type: 'string' }, + items: { type: "string" }, }, }, required: ["alsoKnownAs"], diff --git a/packages/backend/src/server/api/endpoints/i/move.ts b/packages/backend/src/server/api/endpoints/i/move.ts index ba2360b196..d972aaf1d9 100644 --- a/packages/backend/src/server/api/endpoints/i/move.ts +++ b/packages/backend/src/server/api/endpoints/i/move.ts @@ -98,12 +98,10 @@ export default define(meta, paramDef, async (ps, user) => { const { username, host } = parse(ps.moveToAccount); if (!host) throw new ApiError(meta.errors.notRemote); - const moveTo: User = await resolveUser(username, host).catch( - (e) => { - apiLogger.warn(`failed to resolve remote user: ${e}`); - throw new ApiError(meta.errors.noSuchMoveTarget); - }, - ); + const moveTo: User = await resolveUser(username, host).catch((e) => { + apiLogger.warn(`failed to resolve remote user: ${e}`); + throw new ApiError(meta.errors.noSuchMoveTarget); + }); let fromUrl: string | null = user.uri; if (!fromUrl) { fromUrl = `${config.url}/users/${user.id}`; diff --git a/packages/client/src/pages/settings/migration.vue b/packages/client/src/pages/settings/migration.vue index 610d1ce1fe..df65e6e25c 100644 --- a/packages/client/src/pages/settings/migration.vue +++ b/packages/client/src/pages/settings/migration.vue @@ -2,9 +2,13 @@