Restore Gravatar function

dev
錢爸爸 7 years ago committed by GitHub
parent 84ad7f2bf3
commit 129137b773
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -37,8 +37,8 @@ class User extends Model
public function getGravatarAttribute()
{
// $hash = md5(strtolower(trim($this->attributes['email'])));
return '/images/Avatar.jpg';//.$hash;
$hash = md5(strtolower(trim($this->attributes['email'])));
return "https://secure.gravatar.com/avatar/".$hash;
}
public function isAdmin()

Loading…
Cancel
Save