From aac738c60823c8b40cccd2b39cf223a7ea3e406e Mon Sep 17 00:00:00 2001 From: Yufan Sheng Date: Thu, 5 Sep 2024 20:35:14 +0800 Subject: [PATCH] fix: invalid avatar url. --- src/actions/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/actions/index.ts b/src/actions/index.ts index bac2b2d..91ef558 100644 --- a/src/actions/index.ts +++ b/src/actions/index.ts @@ -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({