From d1016727a0a0085948dfbabbd9968b0d46f4e9d9 Mon Sep 17 00:00:00 2001 From: Alexander Harding <2166114+aeharding@users.noreply.github.com> Date: Fri, 23 Jun 2023 10:17:24 -0500 Subject: [PATCH] Hotfix for lemmy v0.18 --- server.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server.mjs b/server.mjs index 83f2fc5f8c..f4b5635d80 100644 --- a/server.mjs +++ b/server.mjs @@ -101,6 +101,9 @@ app.use( "user-agent", `(${req.hostname}, ${process.env.EMAIL || "hello@wefwef.app"})` ); + + // Fake it to get around Lemmy API connection issue + clientReq.setHeader("origin", `https://${req.params.actor}`); }, }) );