fix(backend): UserFromURI failure shouldn't causes exception
This commit is contained in:
parent
662b2cc555
commit
c6960710a6
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue