From 6538f6f358ba5ed4edc3b91ff452ea497d7ca8a1 Mon Sep 17 00:00:00 2001 From: Kira <372267+kiranoot@users.noreply.github.com> Date: Sun, 28 Jun 2026 01:00:43 -0400 Subject: [PATCH] Fix exception on webp images. This prevents the increasingly common error that occurs when a link is set to a webp image. --- app/views/links/_details.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/links/_details.html.erb b/app/views/links/_details.html.erb index c9095a39..f1ec7196 100644 --- a/app/views/links/_details.html.erb +++ b/app/views/links/_details.html.erb @@ -1,5 +1,5 @@ <% target = "link_details_#{link.id}" %> -<% e621_url = "https://e621.net/posts?md5=#{ CGI.escape(link.post_url[/\w*(?=\.(png|jpg|bmp|webm|mp4|gif)$)/]) }" if link.post_url %> +<% e621_url = "https://e621.net/posts?md5=#{ CGI.escape(link.post_url[/\w*(?=\.(png|jpg|bmp|webm|mp4|gif|webp)$)/]) }" if link.post_url %> <% client = link_agent_to_icon link.last_ping_user_agent %> <% devices = { desktop: :desktop,