Changed my mind :)

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-07-04 16:48:05 +01:00
parent 00f7cb9dbb
commit 36ae162626

View file

@ -445,11 +445,7 @@ class UserPresenter extends Presenter
return Storage::disk('public')->url('avatars/'.e($this->avatar)); 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 // Fall back to Gravatar if the settings allow loading remote scripts
if (Setting::getSettings()->load_remote == '1') { if (Setting::getSettings()->load_remote == '1') {
if ($this->model->gravatar != '') { if ($this->model->gravatar != '') {
@ -464,7 +460,10 @@ class UserPresenter extends Presenter
} }
} }
// If there is a default avatar
if (Setting::getSettings()->default_avatar!= '') {
return Storage::disk('public')->url('avatars/'.e(Setting::getSettings()->default_avatar));
}
return false; return false;
} }