fix exception when fetching a user who doesn't exist yet
This commit is contained in:
parent
069d13c77f
commit
f6e1b40fd8
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue