diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index ead7cf741..49524a702 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -229,7 +229,7 @@ def sanitize(sanitized, noimages=False): sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('

(https:.*?\.mp4)

', sanitized): - sanitized = sanitized.replace(i.group(0), f'

') + sanitized = sanitized.replace(i.group(0), f'

') for rd in ["https://reddit.com/", "https://new.reddit.com/", "https://www.reddit.com/", "https://redd.it/"]: sanitized = sanitized.replace(rd, "https://old.reddit.com/") diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 2acbd8dd9..ebce280cc 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -59,7 +59,7 @@ You can use Markdown formatting. Videos [{{'SITE_NAME' | app_config}}]({{request.host_url}}) - + diff --git a/files/templates/submission.html b/files/templates/submission.html index dc7bc0005..8d3a7a794 100644 --- a/files/templates/submission.html +++ b/files/templates/submission.html @@ -454,7 +454,7 @@ {% elif p.url and p.url.lower().endswith('.mp4') %}

-
diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 3c15572cd..8fb747bec 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -487,7 +487,7 @@ {% if p.url and p.url.lower().endswith('.mp4') %}
-