From ad042f29e41a5b619fcd3edbdf336c24858fa3a4 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Wed, 16 Oct 2019 22:29:00 -0700 Subject: [PATCH] %URL in Sauce should use full image when extension is .jpeg. --- src/Images/Sauce.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Images/Sauce.coffee b/src/Images/Sauce.coffee index c8cd676e0..193e2c264 100644 --- a/src/Images/Sauce.coffee +++ b/src/Images/Sauce.coffee @@ -110,7 +110,7 @@ Sauce = formatters: TURL: (post, file) -> file.thumbURL URL: (post, file) -> file.url - IMG: (post, file, ext) -> if ext in ['gif', 'jpg', 'png'] then file.url else file.thumbURL + IMG: (post, file, ext) -> if ext in ['gif', 'jpg', 'jpeg', 'png'] then file.url else file.thumbURL MD5: (post, file) -> file.MD5 sMD5: (post, file) -> file.MD5?.replace /[+/=]/g, (c) -> ({'+': '-', '/': '_', '=': ''})[c] hMD5: (post, file) -> if file.MD5 then ("0#{c.charCodeAt(0).toString(16)}"[-2..] for c in atob file.MD5).join('')