summaryrefslogtreecommitdiff
path: root/packages/backend/src/queue/processors
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-11-26 09:05:04 -0500
committerHazelnoot <acomputerdog@gmail.com>2024-11-26 09:05:04 -0500
commit1e99782666397de786093b36077011ac32cea1a8 (patch)
tree286450927d1428c9f28acd1392da4fb4af8abff0 /packages/backend/src/queue/processors
parentmerge: Normalize AP IDs during verification (resolves #818) (!774) (diff)
downloadsharkey-1e99782666397de786093b36077011ac32cea1a8.tar.gz
sharkey-1e99782666397de786093b36077011ac32cea1a8.tar.bz2
sharkey-1e99782666397de786093b36077011ac32cea1a8.zip
allow anonymous activities (resolves #819)
Diffstat (limited to 'packages/backend/src/queue/processors')
-rw-r--r--packages/backend/src/queue/processors/InboxProcessorService.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts
index 260ebe0d40..5411eb69d0 100644
--- a/packages/backend/src/queue/processors/InboxProcessorService.ts
+++ b/packages/backend/src/queue/processors/InboxProcessorService.ts
@@ -194,7 +194,8 @@ export class InboxProcessorService implements OnApplicationShutdown {
throw new Bull.UnrecoverableError(`skip: signerHost(${signerHost}) !== activity.id host(${activityIdHost}`);
}
} else {
- throw new Bull.UnrecoverableError('skip: activity id is not a string');
+ // Activity ID should only be string or undefined.
+ delete activity.id;
}
// Update stats