forked from MarseyWorld/MarseyWorld
functools consistency
parent
9e370b79a0
commit
4f174607f9
|
@ -1,7 +1,7 @@
|
|||
import bleach
|
||||
from bleach.css_sanitizer import CSSSanitizer
|
||||
from bleach.linkifier import LinkifyFilter
|
||||
from functools import partial
|
||||
import functools
|
||||
|
||||
from files.helpers.regex import sanitize_url_regex
|
||||
from files.helpers.config.const import *
|
||||
|
@ -86,7 +86,7 @@ def bleach_body_html(body_html, runtime=False):
|
|||
protocols=['http', 'https'],
|
||||
css_sanitizer=css_sanitizer,
|
||||
filters=[
|
||||
partial(
|
||||
functools.partial(
|
||||
LinkifyFilter,
|
||||
skip_tags=["pre","code"],
|
||||
parse_email=False,
|
||||
|
|
|
@ -670,7 +670,7 @@ def filter_emojis_only(title, golden=True, count_emojis=False, obj=None, author=
|
|||
attributes=allowed_attributes_emojis,
|
||||
protocols=['http','https'],
|
||||
filters=[
|
||||
partial(
|
||||
functools.partial(
|
||||
LinkifyFilter,
|
||||
skip_tags=["pre","code"],
|
||||
parse_email=False,
|
||||
|
|
Loading…
Reference in New Issue