create local uri out of ID [CI SKIP]

This commit is contained in:
cutestnekoaqua 2022-12-15 16:55:22 +01:00
parent ae27aabbef
commit c17755e109
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0
1 changed files with 1 additions and 1 deletions

View File

@ -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;