copy block and mute and update lists when detecting an account has moved

This commit is contained in:
Namekuji 2023-04-13 10:43:29 -04:00
parent 8c031e9f42
commit 91fcad0c85
4 changed files with 101 additions and 46 deletions

View file

@ -109,7 +109,7 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
throw new ApiError(meta.errors.noSuchMoveTarget);
});
const destination = await this.getterService.getUser(moveTo.id);
moveTo.uri = this.accountMoveService.getUserUri(destination)
moveTo.uri = this.accountMoveService.getUserUri(destination);
// update local db
await this.apPersonService.updatePerson(moveTo.uri);