mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
parent
a2c54c1da0
commit
aa0b012710
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue