This commit is contained in:
Shadowfacts 2022-06-16 20:02:47 -04:00
parent 5181af6dbc
commit e7e258e91c
1 changed files with 1 additions and 11 deletions

View File

@ -6,7 +6,7 @@ const domain = process.env.DOMAIN;
export default function webfinger(router: Router) { export default function webfinger(router: Router) {
router.get("/.well-known/webfinger", (req, res) => { router.get("/.well-known/webfinger", (req, res) => {
res.json({ res.json({
subject: `acct:block@${domain}`, subject: `acct:blog@${domain}`,
aliases: [`https://${domain}/ap/actor`], aliases: [`https://${domain}/ap/actor`],
links: [ links: [
{ {
@ -16,16 +16,6 @@ export default function webfinger(router: Router) {
} }
] ]
} as WebfingerResult); } as WebfingerResult);
res.json({
"subject": `acct:blog@${domain}`,
"links": [
{
"rel": "self",
"type": "application/activity+json",
"href": `https://${domain}/ap/actor`
}
]
});
res.end(); res.end();
}); });
} }