code ported from iceshrimp: c3e685a925/packages/backend/src/remote/webfinger.ts
c3e685a925/packages/backend/src/remote/webfinger.ts