Skip to content

Commit

Permalink
chore: gravatar fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
renbaoshuo committed Mar 26, 2023
1 parent 8defcd4 commit d6df38c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/app/models/HTML.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static function avatar_addr($user, $size) {
return "https://q1.qlogo.cn/g?b=qq&nk={$user['qq']}&s=$s";
}

return 'https://cravatar.cn/avatar/' . md5(strtolower(trim($user['email']))) . "?d=404&s=$size";
return 'https://cravatar.cn/avatar/' . md5(strtolower(trim($user['email']))) . "?d=mm&s=$size";
}

public static function tablist($tabs_info, $cur, $type = 'nav-tabs') {
Expand Down

0 comments on commit d6df38c

Please sign in to comment.