update avatar url
This commit is contained in:
parent
e3279314f9
commit
7de632db35
|
@ -211,7 +211,10 @@ class Comment implements EntityInterface
|
|||
*/
|
||||
public function getAvatar(): string
|
||||
{
|
||||
return 'https://secure.gravatar.com/avatar/'.md5($this->getEmail() ?? 'undefined@undefined').'.jpg?s=90&d=retro';
|
||||
$mail = $this->getEmail() ?? sprintf('%d@deblan.io', $this->getId());
|
||||
$hash = md5($mail);
|
||||
|
||||
return 'https://cdn.libravatar.org/avatar/'.$hash.'?s=90&d=retro';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue