From d5d0b426f1c69a2a4633f3b67606697eabbffe27 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 20 Jul 2023 23:07:28 +0000 Subject: [PATCH] fix audio --- resources/views/partials/checkins-list.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index 3a05b6b..8d30cf6 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -23,6 +23,7 @@ } } elseif (preg_match("/\.ogg/", $filepath[1])) { $hasEmbed = 'audio'; + $trip_slug = preg_replace( '/[^A-Za-z0-9-]+/', '-', strtolower( $trip->name ) ); if (file_exists(public_path() . "/" . $trip_slug . "/" . $hasEmbed . "/" . $filepath[1])) { $path = "/" . $trip_slug . "/" .$hasEmbed . "/" . $filepath[1];