log signature parse err

This commit is contained in:
tamaina 2024-03-09 20:02:33 +00:00
parent eb8495648e
commit 9bfa38e601
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,9 @@ export class ActivityPubServerService {
draft: ['(request-target)', 'digest', 'host', 'date'],
},
});
} catch (e) {
} catch (err) {
this.inboxLogger.warn('signature header parsing failed', { err });
if (typeof request.body === 'object' && 'signature' in request.body) {
// LD SignatureがあればOK
this.queueService.inbox(request.body as IActivity, null);