From 37bc8adf1be836a41e83eda35c291925ab5aa753 Mon Sep 17 00:00:00 2001 From: Aevann Date: Wed, 8 Feb 2023 04:14:54 +0200 Subject: [PATCH] fix chat --- files/helpers/sanitize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b3396ecf9..f5133a0ee 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -351,7 +351,7 @@ def handle_youtube_links(url): return html @with_sigalrm_timeout(10) -def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys=False, torture=False, snappy=False, blackjack=None): +def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys=False, torture=False, snappy=False, chat=False, blackjack=None): sanitized = sanitized.strip() if blackjack and execute_blackjack(g.v, None, sanitized, blackjack): @@ -515,7 +515,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys domain_list.add(d.lower()) def error(error): - if blackjack == "chat": + if chat: return error, 403 else: abort(403, error)