From 6f222d4c981f011264b25ab83732952590038ce9 Mon Sep 17 00:00:00 2001 From: Rumperuu Date: Thu, 20 Jul 2023 17:10:16 +0000 Subject: [PATCH] fix filepath --- resources/views/partials/checkins-list.blade.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/partials/checkins-list.blade.php b/resources/views/partials/checkins-list.blade.php index e45fdb2..3a05b6b 100644 --- a/resources/views/partials/checkins-list.blade.php +++ b/resources/views/partials/checkins-list.blade.php @@ -5,7 +5,7 @@ $embedMissing = null; if (preg_match("/\[\[([^\]]+)\]\]/", $checkin->note, $filepath)) { if (preg_match("/\.webm/", $filepath[1])) { - $hasEmbed = 'video'; + $hasEmbed = 'videos'; $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]; @@ -49,7 +49,7 @@ 🖼️ @endif @if($hasEmbed) - @if($hasEmbed === 'video') + @if($hasEmbed === 'videos') 📹 @endif @if($hasEmbed === 'audio')