From c17755e109235e4d74c52eb2736053255ae9a393 Mon Sep 17 00:00:00 2001 From: cutestnekoaqua Date: Thu, 15 Dec 2022 16:55:22 +0100 Subject: [PATCH] create local uri out of ID [CI SKIP] --- packages/backend/src/server/api/endpoints/i/move.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/move.ts b/packages/backend/src/server/api/endpoints/i/move.ts index 94b2271281..6b6425cc60 100644 --- a/packages/backend/src/server/api/endpoints/i/move.ts +++ b/packages/backend/src/server/api/endpoints/i/move.ts @@ -106,7 +106,7 @@ export default define(meta, paramDef, async (ps, user) => { }); let fromUrl: string | null = user.uri; if(!fromUrl) { - throw new ApiError(meta.errors.localUriNull); + fromUrl = `${config.url}/users/${user.id}`; } let toUrl: string | null = moveTo.uri;