mirror of
https://github.com/BradNut/awesome-uses
synced 2025-09-08 17:40:31 +00:00
fix unavatar url
This commit is contained in:
parent
111a46b413
commit
d15c128a11
1 changed files with 2 additions and 2 deletions
|
|
@ -24,8 +24,8 @@ function useIntersectionObserver(ref) {
|
|||
|
||||
export default function Person({ person, currentTag }) {
|
||||
const url = new URL(person.url);
|
||||
const twitter = person.twitter ? `https://unavatar.now.sh/twitter/${person.twitter.replace('@', '')}` : null;
|
||||
const website = `https://unavatar.now.sh/${url.host}`;
|
||||
const twitter = person.twitter ? `https://unavatar.io/twitter/${person.twitter.replace('@', '')}` : null;
|
||||
const website = `https://unavatar.io/${url.host}`;
|
||||
const unavatar = person.twitter ? `${twitter}?fallback=${website}` : website;
|
||||
const img = `https://images.weserv.nl/?url=${unavatar}&w=100&l=9&af&il&n=-1`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue