]> Untitled Git - lemmy-ui.git/commitdiff
fix: fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER
authorMichał <30625554+n3oney@users.noreply.github.com>
Fri, 16 Jun 2023 16:32:21 +0000 (18:32 +0200)
committerGitHub <noreply@github.com>
Fri, 16 Jun 2023 16:32:21 +0000 (18:32 +0200)
src/server/index.tsx

index 3a12ad7e57e56dd6a34e0919aaad120e04effc65..7fca89f26815484cf6596c00399997d906112a31 100644 (file)
@@ -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 {