Skip to content

Commit

Permalink
修复gravatar头像无法显示的情况
Browse files Browse the repository at this point in the history
gravatar中国源又拉闸了
  • Loading branch information
splendidmata authored Mar 15, 2021
1 parent c6a4830 commit b570a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function getGravatarAttribute()
return "https://q4.qlogo.cn/g?b=qq&nk=".$this->attributes['email']."&s=3";
}
$hash = md5(strtolower(trim($this->attributes['email'])));
return "https://secure.gravatar.com/avatar/".$hash;
return "https://gravatar.cat.net/avatar/".$hash;
}

public function isAdmin()
Expand Down

0 comments on commit b570a5a

Please sign in to comment.