Merge pull request #1325 from n3oney/patch-1

fix loading custom themes with a custom LEMMY_UI_EXTRA_THEMES_FOLDER
This commit is contained in:
SleeplessOne1917 2023-06-20 23:37:15 +00:00 committed by GitHub
commit cec22203c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -15,7 +15,7 @@ export default async (req: Request, res: Response) => {
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);