From a5684366654ff3330035d9dac51651b118df661d Mon Sep 17 00:00:00 2001 From: Good627 <193092356+Good627@users.noreply.github.com> Date: Tue, 13 Oct 2026 18:04:17 +0300 Subject: [PATCH] feat(chat): trust static.klipy.com CDN for in-game GIF previews --- src/tel/eden/mod/chat/ImagePreviewManager.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/tel/eden/mod/chat/ImagePreviewManager.java b/src/tel/eden/mod/chat/ImagePreviewManager.java index d0edba8..d31fdfc 100644 --- a/src/tel/eden/mod/chat/ImagePreviewManager.java +++ b/src/tel/eden/mod/chat/ImagePreviewManager.java @@ -621,6 +621,8 @@ private static java.awt.image.BufferedImage decodeWithImageIo(byte[] data) throw "media.tenor.com", "media1.tenor.com", "c.tenor.com", // Giphy "media.giphy.com", "i.giphy.com", "media0.giphy.com", "media1.giphy.com", "media2.giphy.com", "media3.giphy.com", "media4.giphy.com", + // Klipy (Discord GIF picker) + "static.klipy.com", "static1.klipy.com", "static2.klipy.com", // Wynncraft "cdn.wynncraft.com"); @@ -630,9 +632,9 @@ private static java.awt.image.BufferedImage decodeWithImageIo(byte[] data) throw * page and pulls the real media URL out of its {@code og:image} tag before the * normal download path runs. * - *
Klipy is deliberately not included here: its share pages sit behind a - * Cloudflare bot-management challenge that always 403s a plain HTTP fetch, so - * there's nothing to resolve — those links stay plain clickable text instead. + *
Klipy share pages sit behind a Cloudflare bot-management challenge that
+ * always 403s a direct client fetch; EdenBot resolves those to direct
+ * static.klipy.com media links server-side before relaying.
*/
private static final java.util.Set