diff --git a/files/helpers/bleach_body.py b/files/helpers/bleach_body.py index 07afded2e..48880ebc2 100644 --- a/files/helpers/bleach_body.py +++ b/files/helpers/bleach_body.py @@ -40,7 +40,7 @@ def allowed_attributes(tag, name, value): if name == 'data-user-submitted' and not value: return True if tag == 'lite-youtube': - if name == 'params' and value.startswith('autoplay=1&modestbranding=1'): return True + if name == 'params': return True if name == 'videoid': return True if tag == 'video': diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 3c0039f76..6fd18a34e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -296,7 +296,7 @@ def handle_youtube_links(url): if yt_id_regex.fullmatch(id): if not t: t = params.get('t', params.get('start', [0]))[0] - html = f'' diff --git a/files/templates/formatting.html b/files/templates/formatting.html index 925f76c8a..317ea8338 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -82,7 +82,7 @@ Youtube Videos https://youtube.com/watch?v=3Hecr51ByE4 - +