From b6912908d49fb7fff2a43a4043a162886bbb07c1 Mon Sep 17 00:00:00 2001 From: xanners Date: Mon, 16 Mar 2026 13:20:14 -0500 Subject: [PATCH] fix: Animate avatars/icons that's using the `.webp` file format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As you may of known, WebP can also be animated and provides some advantages, like having a smaller file sizes over GIF. Though, the point is that WebP can be animated, and so—it should have the same effect as normal GIFs - it having the loop animation than it just being static. Signed-off-by: xanners --- src/classes/File.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/classes/File.ts b/src/classes/File.ts index cf1e25d2..02c352d1 100644 --- a/src/classes/File.ts +++ b/src/classes/File.ts @@ -117,7 +117,7 @@ export class File { if (!autumn?.enabled) return; let query = ""; - if (forceAnimation && this.contentType === "image/gif") { + if (forceAnimation && (this.contentType === "image/gif" || this.contentType === "image/webp")) { query = "/original"; }