minor on webfinger

This commit is contained in:
lesion 2022-05-20 13:03:46 +02:00
parent 3d3544e9e9
commit 47369e1b5c
No known key found for this signature in database
GPG key ID: 352918250B012177

View file

@ -28,7 +28,7 @@ router.get('/webfinger', allowFederation, (req, res) => {
}
const resource = req.query.resource
const domain = (new url.URL(settings.baseurl)).host
const domain = (new url.URL(res.locals.settings.baseurl)).host
const [, name, req_domain] = resource.match(/acct:(.*)@(.*)/)
if (domain !== req_domain) {
log.warn(`Bad webfinger request, requested domain "${req_domain}" instead of "${domain}"`)