Always linkify <img> tags, no matter the src
This commit is contained in:
parent
dbcfad1c50
commit
78663df09e
3
TODO.md
3
TODO.md
@ -18,9 +18,7 @@ OLD
|
|||||||
|
|
||||||
- Bug fixes
|
- Bug fixes
|
||||||
- 100% CPU usage when hitting top edge to trigger messages loading
|
- 100% CPU usage when hitting top edge to trigger messages loading
|
||||||
- Sending `` → not clickable?
|
|
||||||
- `MessageDelegate.qml:63: TypeError: 'reloadPreviousItem' not a function`
|
- `MessageDelegate.qml:63: TypeError: 'reloadPreviousItem' not a function`
|
||||||
- RoomEventsList scrolling when resizing the window
|
|
||||||
|
|
||||||
- UI
|
- UI
|
||||||
- Invite to room
|
- Invite to room
|
||||||
@ -70,6 +68,7 @@ OLD
|
|||||||
- See `Qt.callLater()` potential usages
|
- See `Qt.callLater()` potential usages
|
||||||
- Banner name color instead of bold
|
- Banner name color instead of bold
|
||||||
- Animate RoomEventDelegate DayBreak apparition
|
- Animate RoomEventDelegate DayBreak apparition
|
||||||
|
- Room subtitle: show things like "*Image*" instead of blank, etc
|
||||||
|
|
||||||
- Missing nio support
|
- Missing nio support
|
||||||
- MatrixRoom invited members list
|
- MatrixRoom invited members list
|
||||||
|
@ -131,8 +131,7 @@ class HtmlFilter:
|
|||||||
width = el.attrib.get("width", "256")
|
width = el.attrib.get("width", "256")
|
||||||
height = el.attrib.get("height", "256")
|
height = el.attrib.get("height", "256")
|
||||||
|
|
||||||
if el.getparent().tag == "a" or el.tag != "img" or \
|
if el.getparent().tag == "a" or el.tag != "img":
|
||||||
not self._is_image_path(link):
|
|
||||||
return el
|
return el
|
||||||
|
|
||||||
el.tag = "a"
|
el.tag = "a"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user