mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-28 14:30:39 +01:00
force follow if any error happens
This commit is contained in:
parent
bc7e801063
commit
7f287e0c3a
1 changed files with 9 additions and 5 deletions
|
@ -129,11 +129,15 @@ export class AccountMoveService {
|
||||||
@bindThis
|
@bindThis
|
||||||
public async move(src: User, dst: User): Promise<void> {
|
public async move(src: User, dst: User): Promise<void> {
|
||||||
// Copy blockings and mutings, and update lists
|
// Copy blockings and mutings, and update lists
|
||||||
|
try {
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
this.copyBlocking(src, dst),
|
this.copyBlocking(src, dst),
|
||||||
this.copyMutings(src, dst),
|
this.copyMutings(src, dst),
|
||||||
this.updateLists(src, dst),
|
this.updateLists(src, dst),
|
||||||
]);
|
]);
|
||||||
|
} catch {
|
||||||
|
/* skip if any error happens */
|
||||||
|
}
|
||||||
|
|
||||||
// follow the new account and unfollow the old one
|
// follow the new account and unfollow the old one
|
||||||
const proxy = await this.proxyAccountService.fetch();
|
const proxy = await this.proxyAccountService.fetch();
|
||||||
|
|
Loading…
Reference in a new issue