From f1211f98a7b8d075d659b14a3de04ef2b5a92ec5 Mon Sep 17 00:00:00 2001 From: Moon Man Date: Wed, 27 Dec 2023 11:33:58 -0500 Subject: [PATCH] logging --- src/activity.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/activity.ts b/src/activity.ts index 0eac8be..6c1f598 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -204,7 +204,9 @@ export const sendAccept = async (user: User, follower: string, inbox: string) => const init: RequestInit = { method: "POST", body: payload }; const init2 = { hash, privateKey: user.private_key, keyId: getKeyId(user.nickname) }; - await signedFetch(inbox, init, init2); + const result = await signedFetch(inbox, init, init2); + console.log("response status:", result.status); + console.log("body:", result.body); }; export const sendAll = async (keyId: string, privateKey: string, activity: Record | string, inboxes: string[]) => {