fix exception when fetching a user who doesn't exist yet

This commit is contained in:
Hazelnoot 2025-09-16 11:27:59 -04:00
parent 069d13c77f
commit f6e1b40fd8

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);
userId = await this.cacheService.uriPersonCache.fetch(uri).catch(() => null);
}
// No match