fix: add avatar in webfinger response

This commit is contained in:
lesion 2024-10-09 13:15:18 +02:00
parent daa12f5123
commit 82079ae4b2
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -45,7 +45,12 @@ router.get('/webfinger', allowFederation, (req, res) => {
rel: 'self',
type: 'application/activity+json',
href: `${settings.baseurl}/federation/u/${name}`
}
},
{
"href" : settings.baseurl + '/logo.png',
"rel" : "http://webfinger.net/rel/avatar",
"type" : "image/png"
}
]
}
res.set('Content-Type', 'application/jrd+json')