From 2c682e68f81d3675dac492421d59c09b6a96a0f0 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sun, 30 Jul 2023 02:36:08 +0300 Subject: [PATCH] much better approach for handling large emojis in titles that doesnt break notifications generated from said titles --- files/assets/css/main.css | 4 ---- files/helpers/sanitize.py | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/files/assets/css/main.css b/files/assets/css/main.css index cc93c4a32..0deb76fbe 100644 --- a/files/assets/css/main.css +++ b/files/assets/css/main.css @@ -5512,10 +5512,6 @@ input[type=radio] ~ .custom-control-label::before { height: 150px; width: 150px; } -img[t] { - height: 40px !important; - width: 40px !important; -} .emj, .emoji, .bigemoji, .emoji-md, .emoji-lg, img[alt^=":"] { max-width: 150px !important; diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index b25757aa5..dca351c9e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -229,7 +229,7 @@ def render_emoji(html, regexp, golden, emojis_used, b=False, is_title=False): emoji = i.group(1).lower() attrs = '' if b: attrs += ' b' - if is_title: attrs += ' t' + if is_title: emoji = emoji.replace('#','') if golden and len(emojis) <= 20 and ('marsey' in emoji or emoji in marseys_const2): if random.random() < 0.0025: attrs += ' g' elif random.random() < 0.00125: attrs += ' glow'