fix: nodeinfo 2.0 compliance

This commit is contained in:
naskya 2023-11-29 04:22:11 +09:00
parent e473dfb10e
commit 3570406b05
No known key found for this signature in database
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");