From ad2bf18ab46f758cba9e262af286cb9decf91fe6 Mon Sep 17 00:00:00 2001
From: =?utf8?q?Micha=C5=82?= <30625554+n3oney@users.noreply.github.com>
Date: Fri, 16 Jun 2023 18:32:21 +0200
Subject: [PATCH] fix: fix loading custom themes with a custom
 LEMMY_UI_EXTRA_THEMES_FOLDER

---
 src/server/index.tsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/server/index.tsx b/src/server/index.tsx
index 3a12ad7..7fca89f 100644
--- a/src/server/index.tsx
+++ b/src/server/index.tsx
@@ -87,7 +87,7 @@ server.get("/css/themes/:name", async (req, res) => {
     res.send("Theme must be a css file");
   }
 
-  const customTheme = path.resolve(`./${extraThemesFolder}/${theme}`);
+  const customTheme = path.resolve(`${extraThemesFolder}/${theme}`);
   if (existsSync(customTheme)) {
     res.sendFile(customTheme);
   } else {
-- 
2.44.1