🆙 More fixes 🆙

This commit is contained in:
Remco
2026-01-19 20:50:18 +01:00
parent b983f325f4
commit 93d3067306
5 changed files with 21 additions and 8 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(strval(config('app.url') ?? ''), '/') . '/' . ltrim($adsPicturePath, '/');
}
return rtrim($adsPicturePath, '/') . '/' . $this->image;
});