move uriPersonCache to ApPersonService

This commit is contained in:
Hazelnoot 2025-10-06 11:41:57 -04:00
parent e1044879ea
commit 18b909a10c
2 changed files with 2 additions and 2 deletions

View file

@ -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}`);

View file

@ -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