diff options
| author | Laura Hausmann <laura@hausmann.dev> | 2024-10-24 04:37:47 +0200 |
|---|---|---|
| committer | Julia Johannesen <julia@insertdomain.name> | 2024-11-20 19:17:24 -0500 |
| commit | ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036 (patch) | |
| tree | 9d531aa82dd8a8936c2513260e3edecd7047ab76 /packages/backend/src/queue/processors/InboxProcessorService.ts | |
| parent | fix: primitive 4: missing same-origin identifier validation of collection-wra... (diff) | |
| download | sharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.tar.gz sharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.tar.bz2 sharkey-ad8e8793c7b0ecc08bb271cd83ba04f6f8be7036.zip | |
fix: primitives 5 & 8: reject activities with non-string identifiers
Diffstat (limited to 'packages/backend/src/queue/processors/InboxProcessorService.ts')
| -rw-r--r-- | packages/backend/src/queue/processors/InboxProcessorService.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/packages/backend/src/queue/processors/InboxProcessorService.ts b/packages/backend/src/queue/processors/InboxProcessorService.ts index 11b00bb683..f453d7d1ae 100644 --- a/packages/backend/src/queue/processors/InboxProcessorService.ts +++ b/packages/backend/src/queue/processors/InboxProcessorService.ts @@ -193,6 +193,9 @@ 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'); + } // Update stats this.federatedInstanceService.fetch(authUser.user.host).then(i => { |