From d6df38cb358134b370dfca7acef96d71d119d9be Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 26 Mar 2023 09:53:51 +0800 Subject: [PATCH] chore: gravatar fallback --- web/app/models/HTML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/app/models/HTML.php b/web/app/models/HTML.php index 233eb21..310bffd 100644 --- a/web/app/models/HTML.php +++ b/web/app/models/HTML.php @@ -117,7 +117,7 @@ class HTML { 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') {