1
0
Fork 1
mirror of https://example.com synced 2024-11-23 09:06:39 +09:00

fix: nodeinfo 2.0 compliance

This commit is contained in:
naskya 2023-11-29 04:22:11 +09:00
parent e473dfb10e
commit 3570406b05
Signed by: naskya
GPG key ID: 164DFF24E2D40139

View file

@ -114,6 +114,7 @@ router.get(nodeinfo2_0path, async (ctx) => {
// @ts-ignore
base.software.repository = undefined;
base.software.homepage = undefined;
ctx.body = { version: "2.0", ...base };
ctx.set("Cache-Control", "public, max-age=600");