From 8e9cde08299838d6cf0d05250240f972983e4fd4 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 8 Apr 2021 17:54:41 +0100 Subject: [PATCH] [Rules] Do not trigger HTML_SHORT_LINK_IMG on external images --- rules/html.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/html.lua b/rules/html.lua index cffb2f94a..2b2b415fd 100644 --- a/rules/html.lua +++ b/rules/html.lua @@ -56,7 +56,7 @@ local function check_html_image(task, min, max) if tag then if has_anchor_parent(tag) then -- do not trigger on small and unknown size images - if i['height'] + i['width'] >= 210 or not i['embedded'] then + if i['height'] + i['width'] >= 210 and i['embedded'] then return true end end -- 2.39.5