From b829e9a348857a4f0481e6656b56f938438ac997 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 29 Oct 2023 19:41:09 +0000 Subject: [PATCH] Filter video support text --- video.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/video.py b/video.py index 9a8700a0a..0eed60f62 100644 --- a/video.py +++ b/video.py @@ -178,7 +178,12 @@ def convert_video_to_note(base_dir: str, nickname: str, domain: str, if post_json_object.get('support'): if isinstance(post_json_object['support'], str): - if not dangerous_markup(post_json_object['support'], False, []): - new_post['object']['support'] = post_json_object['support'] + if not dangerous_markup(post_json_object['support'], + False, []): + if not is_filtered(base_dir, nickname, domain, + post_json_object['support'], + system_language): + new_post['object']['support'] = \ + post_json_object['support'] return new_post