fix: change the avatar mirror.

This commit is contained in:
Yufan Sheng 2024-09-15 22:47:56 +08:00
parent d823177cd9
commit 1becc7dd65
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', 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,
}, },
}, },

View File

@ -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 } });