Skip to content

Commit

Permalink
revert(afdian): keep afdian default avatar (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaodong2008 authored May 14, 2024
1 parent aa8ae09 commit bd11dcc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/providers/afdian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit bd11dcc

Please sign in to comment.