fix: change the avatar mirror.

This commit is contained in:
Yufan Sheng 2024-09-15 22:47:56 +08:00
parent c1e6661082
commit 16de68b966
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ const options: z.input<typeof Options> = {
server: 'https://comment.yufan.me',
size: 10,
avatar: {
mirror: 'https://gravatar.webp.se/avatar',
mirror: 'https://weavatar.com/avatar',
size: 120,
},
},

View File

@ -18,7 +18,7 @@ const avatarImage = async (
const defaultAvatarLink = defaultAvatar();
const link = urlJoin(
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 } });