Skip to content

A self-hosted media server and file management system

fix: no tags yet missing

aminnausinef073a7a12f0
diff --git a/resources/views/og-media-preview.blade.php b/resources/views/og-media-preview.blade.php
index 9aac3323..6b997378 100644
--- a/resources/views/og-media-preview.blade.php
+++ b/resources/views/og-media-preview.blade.php
@@ -41,7 +41,7 @@
<div class="flex items-center gap-3">
<div class="flex overflow-hidden w-full gap-2 flex-wrap h-9 [overflow-clip-margin:4px]">
- @foreach (collect($tags ?? ['no tags yet'])->take(5) as $tag)
+ @foreach (collect(count($tags) > 0 ? $tags : ['no tags yet'])->take(5) as $tag)
<span class="bg-white/10 px-3 py-1 rounded-full text-nowrap">{{ $tag }}</span>
@endforeach
</div>