From 127d627bcdb2268d1476cff638e8e48212918bea Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Tue, 5 Oct 2021 22:05:12 +0200 Subject: [PATCH] dfgdg --- files/routes/posts.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/files/routes/posts.py b/files/routes/posts.py index 026e839fa5..1788e01cdd 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -381,6 +381,10 @@ def filter_title(title): if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.webp'): title = title.replace(f':{i.group(1)}:', f'') + for i in re.finditer('!(.{1,30}?)!', title): + if path.isfile(f'./files/assets/images/emojis/{i.group(1)}.webp'): + title = title.replace(f'!{i.group(1)}!', f'') + return title