From dee46a9306cbf599cce644f22716fe455cfd55b2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 1 Oct 2022 19:42:34 +0200 Subject: [PATCH] revert an earlier change for video and audio files in sanitize() --- 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 24cd65d11..526e11d64 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -323,8 +323,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_marseys sanitized = sanitized.replace(i.group(0), htmlsource) - sanitized = video_sub_regex.sub(r'\1', sanitized) - sanitized = audio_sub_regex.sub(r'\1', sanitized) + sanitized = video_sub_regex.sub(r'\1', sanitized) + sanitized = audio_sub_regex.sub(r'\1', sanitized) if count_marseys: for marsey in g.db.query(Marsey).filter(Marsey.submitter_id==None, Marsey.name.in_(marseys_used)).all():