diff --git a/packages/backend/src/core/RemoteUserResolveService.ts b/packages/backend/src/core/RemoteUserResolveService.ts index e84fd9dfe2..6d5af05716 100644 --- a/packages/backend/src/core/RemoteUserResolveService.ts +++ b/packages/backend/src/core/RemoteUserResolveService.ts @@ -144,7 +144,7 @@ export class RemoteUserResolveService { // Update URI await this.usersRepository.update({ id: user.id }, { uri: href }); // Update the user - await this.cacheService.uriPersonCache.delete(user.uri); // Unmap the old URI + await this.apPersonService.uriPersonCache.delete(user.uri); // Unmap the old URI await this.internalEventService.emit('remoteUserUpdated', { id: user.id }); // Update caches this.logger.info(`Corrected URI for ${acct} from ${user.uri} to ${href}`); diff --git a/packages/backend/src/core/activitypub/models/ApPersonService.ts b/packages/backend/src/core/activitypub/models/ApPersonService.ts index 69c69431d0..184ce92694 100644 --- a/packages/backend/src/core/activitypub/models/ApPersonService.ts +++ b/packages/backend/src/core/activitypub/models/ApPersonService.ts @@ -306,7 +306,7 @@ export class ApPersonService implements OnModuleInit { if (parsed.local) { userId = parsed.type === 'users' ? parsed.id : null; } else { - userId = await this.cacheService.uriPersonCache.fetch(uri).catch(() => null); + userId = await this.uriPersonCache.fetch(uri).catch(() => null); } // No match