fix(federation): 🚑 Fix broken inbound federation and add end-to-end testing for federation

This commit is contained in:
Jesse Wierzbinski 2025-04-19 13:16:53 +02:00
parent 85ef96fc7f
commit 8ae4f3815a
No known key found for this signature in database
9 changed files with 192 additions and 29 deletions

View file

@ -28,7 +28,7 @@ export const sign = async (
const body = await req.clone().text();
const url = new URL(req.url);
const digest = stringToBase64Hash(body);
const digest = await stringToBase64Hash(body);
const timestampSecs = Math.floor(timestamp.getTime() / 1000);
const signedString = `${req.method.toLowerCase()} ${encodeURI(