fix: switch source of user profile pictures

This commit switches the source of user profile pictures displayed on comments to the source defined on their profile.

 The profile image was previously being fetched from the applicant's profile.
This commit is contained in:
Miguel Nogueira 2022-02-22 03:20:46 +00:00
parent 0d62167f0c
commit 5e203bc983

View File

@ -423,7 +423,7 @@
<div class="col-md-2">
<div class="text-center">
@if($application->user->avatarPreference == 'gravatar')
@if($comment->user->profile->avatarPreference == 'gravatar')
<img class="profile-user-img img-fluid img-circle" src="https://gravatar.com/avatar/{{md5($comment->user->email)}}" alt="User profile picture">
@else
<img class="profile-user-img img-fluid img-circle" src="https://crafatar.com/avatars/{{$comment->user->uuid}}" alt="User profile picture">