Fix: egg images are not loading (#2009)

This commit is contained in:
hallo123wert 2025-12-17 10:47:18 +01:00 committed by GitHub
parent 8b5f33ee71
commit be55e75109
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -350,7 +350,7 @@ class Egg extends Model implements Validatable
foreach (array_keys(static::IMAGE_FORMATS) as $ext) {
$path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext";
if (Storage::disk('public')->exists($path)) {
return url($path);
return Storage::disk('public')->url($path);
}
}

View File

@ -538,7 +538,7 @@ class Server extends Model implements HasAvatar, Validatable
foreach (array_keys(static::IMAGE_FORMATS) as $ext) {
$path = static::ICON_STORAGE_PATH . "/$this->uuid.$ext";
if (Storage::disk('public')->exists($path)) {
return url($path);
return Storage::disk('public')->url($path);
}
}