From 33d884b0acf1d8db7d937fed4d474dcef2752bac Mon Sep 17 00:00:00 2001 From: blank X Date: Mon, 16 Nov 2020 16:11:51 +0700 Subject: [PATCH] Show and don't mention deleted accounts in .info --- sukuinote/plugins/info.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sukuinote/plugins/info.py b/sukuinote/plugins/info.py index 2aae676..77401e1 100644 --- a/sukuinote/plugins/info.py +++ b/sukuinote/plugins/info.py @@ -9,8 +9,8 @@ def _generate_sexy(entity, ping): text = entity.first_name if entity.last_name: text += f' {entity.last_name}' - sexy_text = html.escape(text or 'Empty???') - if ping and entity.type in ('private', 'bot'): + sexy_text = html.escape(text or '') or '[DELETED]' + if ping and entity.type in ('private', 'bot') and text: sexy_text = f'{sexy_text}' elif entity.username: sexy_text = f'{sexy_text}'