Always linkify <img> tags, no matter the src

This commit is contained in:
miruka
2019-07-04 23:21:27 -04:00
parent dbcfad1c50
commit 78663df09e
2 changed files with 2 additions and 4 deletions

View File

@@ -131,8 +131,7 @@ class HtmlFilter:
width = el.attrib.get("width", "256")
height = el.attrib.get("height", "256")
if el.getparent().tag == "a" or el.tag != "img" or \
not self._is_image_path(link):
if el.getparent().tag == "a" or el.tag != "img":
return el
el.tag = "a"