Remove workaround for sanitizer autolink

Fix merged upstream
This commit is contained in:
miruka 2019-04-19 13:42:00 -04:00
parent 9a1b91caa5
commit 1f04fa07cb
2 changed files with 4 additions and 7 deletions

View File

@ -38,3 +38,7 @@
- On sync, check messages API, if a limited sync timeline was received
- Graphic bug when resizing window vertically for side pane?
- Verify E2E working
- Multiaccount aliases

View File

@ -27,13 +27,6 @@ class HtmlFilter(QObject):
sanitizer.normalize_overall_whitespace = lambda html: html
sanitizer.normalize_whitespace_in_text_or_tail = lambda el: el
# See FIXME note in sanitizer_settings
autolink_func = sanitizer.lxml.html.clean.autolink
sanitizer.lxml.html.clean.autolink = \
lambda el, **kw: autolink_func(
el, **self.sanitizer_settings["autolink"]
)
# Prevent custom attributes from being removed
sanitizer.lxml.html.clean.Cleaner.safe_attrs |= \
self.sanitizer_settings["attributes"]["font"]