Skip to content

Commit

Permalink
Changed my mind :)
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Jul 4, 2024
1 parent 00f7cb9 commit 36ae162
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions app/Presenters/UserPresenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -445,11 +445,7 @@ public function gravatar()
return Storage::disk('public')->url('avatars/'.e($this->avatar));
}

// If there is a default avatar
if (Setting::getSettings()->default_avatar!= '') {
return Storage::disk('public')->url('avatars/'.e(Setting::getSettings()->default_avatar));
}


// Fall back to Gravatar if the settings allow loading remote scripts
if (Setting::getSettings()->load_remote == '1') {
if ($this->model->gravatar != '') {
Expand All @@ -464,7 +460,10 @@ public function gravatar()
}
}


// If there is a default avatar
if (Setting::getSettings()->default_avatar!= '') {
return Storage::disk('public')->url('avatars/'.e(Setting::getSettings()->default_avatar));
}

return false;
}
Expand Down

0 comments on commit 36ae162

Please sign in to comment.