Merge branch 'fix/nodeinfo' into 'develop'

fix: nodeinfo 2.0 compliance

Co-authored-by: naskya <m@naskya.net>

Closes #10798

See merge request firefish/firefish!10643
This commit is contained in:
Kainoa Kanter 2023-12-05 18:46:39 +00:00
commit 30a33a7445

View file

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