diff --git a/nginx/vue/src/components/util/Chat.vue b/nginx/vue/src/components/util/Chat.vue index e8732df..e963196 100644 --- a/nginx/vue/src/components/util/Chat.vue +++ b/nginx/vue/src/components/util/Chat.vue @@ -39,6 +39,10 @@ function isImageUrl(url) { return /\.(jpg|jpeg|png|gif|webp)$/i.test(url); } +function isVideoUrl(url) { + return /\.(mp4|webm|ogg|mov)$/i.test(url); +} + function isSafeFileUrl(url) { return typeof url === "string" && url.startsWith("/uploads/"); } @@ -64,6 +68,8 @@ onUnmounted(() => {