From bd11dccb3f94d9f5a2c9bea3a7e3615386f42170 Mon Sep 17 00:00:00 2001 From: DY_XiaoDong Date: Wed, 15 May 2024 05:52:27 +0800 Subject: [PATCH] revert(afdian): keep afdian default avatar (#73) --- src/providers/afdian.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/providers/afdian.ts b/src/providers/afdian.ts index 919c43d..9c48552 100644 --- a/src/providers/afdian.ts +++ b/src/providers/afdian.ts @@ -76,9 +76,7 @@ export async function fetchAfdianSponsors(options: SponsorkitConfig['afdian'] = let name = raw.user.name if (name.startsWith('爱发电用户_')) name = raw.user.user_id.slice(0, 5) - let avatarUrl = raw.user.avatar - if (avatarUrl.startsWith('https://pic1.afdiancdn.com/default/avatar/avatar-')) - avatarUrl = undefined + const avatarUrl = raw.user.avatar return { sponsor: { type: 'User',