From 2ba594d4473063019e1e7a514f29b9e4842a5358 Mon Sep 17 00:00:00 2001 From: Cynthia Foxwell Date: Tue, 25 Jul 2023 21:24:24 -0600 Subject: [PATCH] fedimbed: fix path resolving wrong --- src/modules/fedimbed.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/fedimbed.js b/src/modules/fedimbed.js index 25e5e25..ada4286 100644 --- a/src/modules/fedimbed.js +++ b/src/modules/fedimbed.js @@ -68,7 +68,9 @@ async function resolvePlatform(url) { } const keyId = "https://hf.c7.pm/action#main-key"; -const privKey = fs.readFileSync(path.resolve("../../priv/private.pem")); +const privKey = fs.readFileSync( + path.resolve(__dirname, "../../priv/private.pem") +); async function signedFetch(url, options) { const urlObj = new URL(url);