Skip to content

Commit

Permalink
Show user defined user avatar if default not set
Browse files Browse the repository at this point in the history
  • Loading branch information
risul3 authored Sep 14, 2019
1 parent f9051ab commit 9b43a78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Controllers/CommentController.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ public static function getComments($itemId){
if($user['avatar'] == 'gravatar'){
$hash = md5(strtolower(trim($user['email'])));
$comment->avatar = "http://www.gravatar.com/avatar/$hash?d=identicon";
} else {
$comment->avatar = $user['avatar'];
}
}

Expand Down

0 comments on commit 9b43a78

Please sign in to comment.