Skip to content

Commit

Permalink
fix: for cosocial rename hs2019 signatures to rsa-256
Browse files Browse the repository at this point in the history
  • Loading branch information
Mauve Signweaver committed Dec 10, 2024
1 parent 42636c9 commit d30c1a4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/server/apsystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export default class ActivityPubSystem {
})
}

// Fix for cosocial
if (typeof headers.signature === 'string' && headers.signature.includes('hs2019')) {
headers.signature = headers.signature.replace('hs2019', 'rsa-sha256')
}

const signature = signatureParser.parse({ url, method, headers })
const { keyId } = signature

Expand Down

0 comments on commit d30c1a4

Please sign in to comment.