Revert "Use fetch().then()"

This reverts commit a2c54c1da0.
This commit is contained in:
Nic Lake 2024-05-28 10:45:58 -05:00
parent a2c54c1da0
commit aa0b012710

View file

@ -19,7 +19,7 @@ export default function Person({ person }) {
: null;
const webfinger =
person.mastodon
? fetch(`https://${mastodonArr[0]}/.well-known/webfinger?resource=https://${mastodonArr[0]}/@${mastodonArr[1]}`).then(response => response.json())
? JSON.parse(`https://${mastodonArr[0]}/.well-known/webfinger?resource=https://${mastodonArr[0]}/@${mastodonArr[1]}`)
: null;
const wfIndex =
person.mastodon && webfinger