chore(web): use gravatar.loli.net as gravatar mirror

This commit is contained in:
Baoshuo Ren 2022-03-20 08:15:03 +08:00
parent 8703281ab3
commit 8cf76566cb
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -8,7 +8,7 @@ class HTML {
return strip_tags($str);
}
public static function avatar_addr($user, $size) {
return '//cn.gravatar.com/avatar/' . md5(strtolower(trim($user['email']))) . "?d=mm&s=$size";
return '//gravatar.loli.net/avatar/' . md5(strtolower(trim($user['email']))) . "?d=mm&s=$size";
}
public static function tablist($tabs_info, $cur, $type = 'nav-tabs') {