From f609c1cf11b86bc38acf4c724ee62f07823a1f80 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 14 Sep 2025 10:53:43 -0400 Subject: [PATCH] fix cherry-pick error --- packages/backend/src/core/AccountMoveService.ts | 2 +- packages/backend/src/core/activitypub/models/ApPersonService.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/backend/src/core/AccountMoveService.ts b/packages/backend/src/core/AccountMoveService.ts index 12b353c1ae..0da153d056 100644 --- a/packages/backend/src/core/AccountMoveService.ts +++ b/packages/backend/src/core/AccountMoveService.ts @@ -323,7 +323,7 @@ export class AccountMoveService { // Set the old account's following and followers counts to 0. // TODO use CollapsedQueueService when merged await this.usersRepository.update({ id: oldAccount.id }, { followersCount: 0, followingCount: 0 }); - await this.internalEventService.emit('userUpdated', { id: oldAccount.id }); + await this.internalEventService.emit(oldAccount.host == null ? 'localUserUpdated' : 'remoteUserUpdated', { id: oldAccount.id }); // Decrease following counts of local followers by 1. // TODO use CollapsedQueueService when merged diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index 793da186f2..e2ecea939d 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -46,6 +46,7 @@ import { verifyFieldLinks } from '@/misc/verify-field-link.js'; import { isRetryableError } from '@/misc/is-retryable-error.js'; import { renderInlineError } from '@/misc/render-inline-error.js'; import { IdentifiableError } from '@/misc/identifiable-error.js'; +import { QueueService } from '@/core/QueueService.js'; import { getApId, getApType, isActor, isCollection, isCollectionOrOrderedCollection, isPropertyValue } from '../type.js'; import { ApLoggerService } from '../ApLoggerService.js'; import { extractApHashtags } from './tag.js'; @@ -121,6 +122,7 @@ export class ApPersonService implements OnModuleInit { private readonly apUtilityService: ApUtilityService, private readonly idService: IdService, private readonly timeService: TimeService, + private readonly queueService: QueueService, apLoggerService: ApLoggerService, ) {