From 4bd23c4c8c9a250276551738e18918e41f375014 Mon Sep 17 00:00:00 2001 From: anatawa12 Date: Wed, 16 Apr 2025 09:49:27 +0900 Subject: feat: migrate antenna on account move (#15843) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: migrate antenna on account move * docs(changelog): アカウントの移行時にアンテナのフィルターのユーザが更新されない問題を修正 * refactor: move to AntennaService --- packages/backend/src/core/AccountMoveService.ts | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packages/backend/src/core/AccountMoveService.ts') diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index 406563bee8..f8e3eaf01f 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -25,6 +25,7 @@ import InstanceChart from '@/core/chart/charts/instance.js'; import PerUserFollowingChart from '@/core/chart/charts/per-user-following.js'; import { SystemAccountService } from '@/core/SystemAccountService.js'; import { RoleService } from '@/core/RoleService.js'; +import { AntennaService } from '@/core/AntennaService.js'; @Injectable() export class AccountMoveService { @@ -63,6 +64,7 @@ export class AccountMoveService { private queueService: QueueService, private systemAccountService: SystemAccountService, private roleService: RoleService, + private antennaService: AntennaService, ) { } @@ -123,6 +125,7 @@ export class AccountMoveService { this.copyMutings(src, dst), this.copyRoles(src, dst), this.updateLists(src, dst), + this.antennaService.onMoveAccount(src, dst), ]); } catch { /* skip if any error happens */ -- cgit v1.2.3-freya