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}'