fix: invalid avatar url.

This commit is contained in:
Yufan Sheng 2024-09-05 20:35:14 +08:00
parent cf4410a742
commit aac738c608
Signed by: syhily
GPG Key ID: DEB186763C308C31

View File

@ -49,7 +49,7 @@ export const server = {
handler: async ({ email }) => {
const id = await queryUserId(email);
const hash = id === null ? encodedEmail(email) : `${id}`;
return { avatar: urlJoin(import.meta.env.SITE, 'avatar', `${hash}.png`) };
return { avatar: urlJoin(import.meta.env.SITE, 'avatar', `${hash}.webp`) };
},
}),
comment: defineAction({