diff --git a/files/helpers/queenify.py b/files/helpers/queenify.py index d588742a2..e31b2bc85 100644 --- a/files/helpers/queenify.py +++ b/files/helpers/queenify.py @@ -35,7 +35,7 @@ def queenify_tag_string(string): return initial + string -def queenify(html): +def queenify_html(html): if '
&&' in html or '
$$' in html or '
##' in html: return html diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 626b0605e..a56cbfff7 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -385,9 +385,6 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis if obj and obj.sharpened: sanitized = sharpen(sanitized) - if obj and obj.queened: - sanitized = queenify(sanitized) - if '```' not in sanitized and '
' not in sanitized: sanitized = linefeeds_regex.sub(r'\1\n\n\2', sanitized) @@ -407,6 +404,9 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis sanitized = markdown(sanitized) sanitized = sanitized.replace('▔', '_').replace('%E2%96%94', '_') + if obj and obj.queened: + sanitized = queenify_html(sanitized) + sanitized = sanitized.replace('/\1', sanitized)