diff --git a/packages/backend/src/queue/processors/inbox.ts b/packages/backend/src/queue/processors/inbox.ts index d9e1fdee5..5e80af8aa 100644 --- a/packages/backend/src/queue/processors/inbox.ts +++ b/packages/backend/src/queue/processors/inbox.ts @@ -41,13 +41,15 @@ export default async (job: Bull.Job): Promise => { return `skip: unsupported LD-signature type ${activity.signature.type}`; } - // get user based on LD-Signature key id. - // lets assume that the creator has this common form: - // - // Then we can use it as the key id and (without fragment part) user id. - authUser = await getAuthUser(activity.signature.creator, activity.signature.creator.replace(/#.*$/, ''), resolver); + try { + // get user based on LD-Signature key id. + // lets assume that the creator has this common form: + // + // Then we can use it as the key id and (without fragment part) user id. + authUser = await getAuthUser(activity.signature.creator, activity.signature.creator.replace(/#.*$/, ''), resolver); - if (authUser == null) { + if (authUser == null) throw new Error(); + } catch { return 'skip: failed to resolve LD-Signature user'; }