fix: primitives 5 & 8: reject activities with non-string identifiers

This commit is contained in:
Laura Hausmann 2024-10-24 04:37:47 +02:00 committed by Julia Johannesen
parent 1e14612f0e
commit ad8e8793c7
No known key found for this signature in database
GPG Key ID: 4A1377AF3E7FBC46

View File

@ -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 => {