From 154a2026eae812e2ecdceac463ab7e0b557c4d69 Mon Sep 17 00:00:00 2001 From: tamaina Date: Sat, 9 Mar 2024 19:15:40 +0000 Subject: [PATCH] inbox-delayed use actor if no signature --- .../src/server/api/endpoints/admin/queue/inbox-delayed.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/backend/src/server/api/endpoints/admin/queue/inbox-delayed.ts b/packages/backend/src/server/api/endpoints/admin/queue/inbox-delayed.ts index 42afa08485..bfe230da8d 100644 --- a/packages/backend/src/server/api/endpoints/admin/queue/inbox-delayed.ts +++ b/packages/backend/src/server/api/endpoints/admin/queue/inbox-delayed.ts @@ -56,8 +56,8 @@ export default class extends Endpoint { // eslint- const res = [] as [string, number][]; for (const job of jobs) { - const signature = 'version' in job.data.signature ? job.data.signature.value : job.data.signature; - const host = Array.isArray(signature) ? 'TODO' : new URL(signature.keyId).host; + const signature = job.data.signature ? 'version' in job.data.signature ? job.data.signature.value : job.data.signature : null; + const host = signature ? Array.isArray(signature) ? 'TODO' : new URL(signature.keyId).host : new URL(job.data.activity.actor).host; if (res.find(x => x[0] === host)) { res.find(x => x[0] === host)![1]++; } else {