From 5c853fc22ed7df0eff821d1534d4b2e46aa15446 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Thu, 29 Jul 2021 08:17:08 +0200 Subject: [PATCH] fdfddf --- drama/helpers/sanitize.py | 2 +- drama/templates/userpage_private.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drama/helpers/sanitize.py b/drama/helpers/sanitize.py index 23607013c..e974d5007 100644 --- a/drama/helpers/sanitize.py +++ b/drama/helpers/sanitize.py @@ -182,7 +182,7 @@ def sanitize(text, linkgen=False, flair=False): else: emojisize = 30 for i in re.finditer(':(.{1,30}?):', sanitized): if path.isfile(f'./drama/assets/images/emojis/{i.group(1)}.gif'): - sanitized = sanitized.replace(f':{i.group(1)}:', f'') + sanitized = sanitized.replace(f':{i.group(1)}:', f'') sanitized = sanitized.replace("https://www.", "https://").replace("https://youtu.be/", "https://youtube.com/embed/").replace("https://music.youtube.com/watch?v=", "https://youtube.com/embed/").replace("/watch?v=", "/embed/").replace("https://open.spotify.com/", "https://open.spotify.com/embed/").replace("https://streamable.com/", "https://streamable.com/e/").replace("https://youtube.com/shorts/", "https://youtube.com/embed/") diff --git a/drama/templates/userpage_private.html b/drama/templates/userpage_private.html index 46185158f..9bfb91f05 100644 --- a/drama/templates/userpage_private.html +++ b/drama/templates/userpage_private.html @@ -11,6 +11,7 @@

This account is private

This user has enabled private mode to cloak their posting history.

+