From 42266ff963a6062ed6b1320b38bb0e9207f040d7 Mon Sep 17 00:00:00 2001 From: Jannis Braun <151788261+TheZwiss@users.noreply.github.com> Date: Sun, 15 Mar 2026 02:09:01 +0100 Subject: [PATCH] fix: match Klipy CDN domain for inline GIF rendering The GIF URL regex matched media.klipy.com but Klipy serves from static.klipy.com, causing GIFs to render as plain links instead of inline images. --- packages/web/src/components/chat/Message.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web/src/components/chat/Message.tsx b/packages/web/src/components/chat/Message.tsx index fe0e05b5..76e30502 100644 --- a/packages/web/src/components/chat/Message.tsx +++ b/packages/web/src/components/chat/Message.tsx @@ -39,7 +39,7 @@ function formatHoverTime(timestamp: number): string { return new Date(timestamp).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' }); } -const GIF_URL_REGEX = /^https:\/\/(?:media\.tenor\.com|media\.klipy\.com)\/.+$/; +const GIF_URL_REGEX = /^https:\/\/(?:media\.tenor\.com|static\.klipy\.com)\/.+$/; function isGifOnlyMessage(content: string | null): boolean { if (!content) return false;