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,10 +445,6 @@ class UserPresenter extends Presenter
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') {
@ -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;
}