From: Dessalines Date: Thu, 29 Jun 2023 05:24:52 +0000 (-0400) Subject: Fixing lints. (#1686) X-Git-Url: http://these/git/%22https:/nerdica.net/README.ja.md?a=commitdiff_plain;h=6b1ea447e50a7a8f3ecf6667e07d7e269b3e6b02;p=lemmy-ui.git Fixing lints. (#1686) --- diff --git a/src/server/handlers/security-handler.ts b/src/server/handlers/security-handler.ts index ceece13..0aed0cd 100644 --- a/src/server/handlers/security-handler.ts +++ b/src/server/handlers/security-handler.ts @@ -3,9 +3,15 @@ import type { Response } from "express"; export default async ({ res }: { res: Response }) => { res.setHeader("content-type", "text/plain; charset=utf-8"); - res.send(`Contact: mailto:security@lemmy.ml - Contact: mailto:admin@` + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + ` - Contact: mailto:security@` + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + ` + res.send( + `Contact: mailto:security@lemmy.ml + Contact: mailto:admin@` + + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + + ` + Contact: mailto:security@` + + process.env.LEMMY_UI_LEMMY_EXTERNAL_HOST + + ` Expires: 2024-01-01T04:59:00.000Z - `); + ` + ); }; diff --git a/src/server/index.tsx b/src/server/index.tsx index e896641..270f33c 100644 --- a/src/server/index.tsx +++ b/src/server/index.tsx @@ -4,8 +4,8 @@ import path from "path"; import process from "process"; import CatchAllHandler from "./handlers/catch-all-handler"; import ManifestHandler from "./handlers/manifest-handler"; -import SecurityHandler from "./handlers/security-handler"; import RobotsHandler from "./handlers/robots-handler"; +import SecurityHandler from "./handlers/security-handler"; import ServiceWorkerHandler from "./handlers/service-worker-handler"; import ThemeHandler from "./handlers/theme-handler"; import ThemesListHandler from "./handlers/themes-list-handler";