🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:46:38 +01:00
parent aca923992a
commit 6a72aef110
6 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -29,7 +29,7 @@ class WebsiteAd extends Model
$adsPicturePath = Cache::remember('ads_picture_path', 3600, fn () => $settingsService->getOrDefault('ads_picture_path'));
if (! str_starts_with($adsPicturePath, 'http')) {
$adsPicturePath = rtrim((string) config('app.url'), '/') . '/' . ltrim($adsPicturePath, '/');
$adsPicturePath = rtrim((string) (config('app.url') ?? ''), '/') . '/' . ltrim($adsPicturePath, '/');
}
return rtrim($adsPicturePath, '/') . '/' . $this->image;
});