fix(backend): UserFromURI failure shouldn't causes exception

This commit is contained in:
老周部落 2024-02-27 00:30:39 +08:00
parent 662b2cc555
commit c6960710a6
No known key found for this signature in database
GPG key ID: C72181CD85C6B738

View file

@ -486,7 +486,7 @@ export const UserRepository = db.getRepository(User).extend({
url: profile!.url,
uri: user.uri,
movedToUri: user.movedToUri
? await this.userFromURI(user.movedToUri)
? await this.userFromURI(user.movedToUri).catch(() => user.movedToUri)
: null,
alsoKnownAs: user.alsoKnownAs,
createdAt: user.createdAt.toISOString(),