fix: change the avatar mirror.
This commit is contained in:
parent
d823177cd9
commit
1becc7dd65
@ -186,7 +186,7 @@ const options: z.input<typeof Options> = {
|
|||||||
server: 'https://comment.yufan.me',
|
server: 'https://comment.yufan.me',
|
||||||
size: 10,
|
size: 10,
|
||||||
avatar: {
|
avatar: {
|
||||||
mirror: 'https://gravatar.webp.se/avatar',
|
mirror: 'https://weavatar.com/avatar',
|
||||||
size: 120,
|
size: 120,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -18,7 +18,7 @@ const avatarImage = async (
|
|||||||
const defaultAvatarLink = defaultAvatar();
|
const defaultAvatarLink = defaultAvatar();
|
||||||
const link = urlJoin(
|
const link = urlJoin(
|
||||||
options.settings.comments.avatar.mirror,
|
options.settings.comments.avatar.mirror,
|
||||||
`${hash}?s=${options.settings.comments.avatar.size}&d=${defaultAvatarLink}`,
|
`${hash}.webp?s=${options.settings.comments.avatar.size}&d=${defaultAvatarLink}`,
|
||||||
);
|
);
|
||||||
|
|
||||||
const resp = await fetch(link, { redirect: 'manual', headers: { Referer: options.website } });
|
const resp = await fetch(link, { redirect: 'manual', headers: { Referer: options.website } });
|
||||||
|
Loading…
Reference in New Issue
Block a user