log signature parse err

This commit is contained in:
tamaina 2024-03-09 20:02:33 +00:00
parent eb8495648e
commit 9bfa38e601

View File

@ -129,7 +129,9 @@ export class ActivityPubServerService {
draft: ['(request-target)', 'digest', 'host', 'date'], 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) { if (typeof request.body === 'object' && 'signature' in request.body) {
// LD SignatureがあればOK // LD SignatureがあればOK
this.queueService.inbox(request.body as IActivity, null); this.queueService.inbox(request.body as IActivity, null);