diff --git a/src/Entity/Blog/Comment.php b/src/Entity/Blog/Comment.php index d6167c8..bbc51db 100644 --- a/src/Entity/Blog/Comment.php +++ b/src/Entity/Blog/Comment.php @@ -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'; } /**