From 5d9a11f5916f748f3d53f01fdcd459274f706736 Mon Sep 17 00:00:00 2001 From: blank X Date: Sun, 4 Apr 2021 15:43:28 +0700 Subject: [PATCH] Force LTR for admin list log_* files have force_ltr and admins.py has FORCE_LTR, amazing --- sukuinote/plugins/admins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sukuinote/plugins/admins.py b/sukuinote/plugins/admins.py index 987df6a..6a79614 100644 --- a/sukuinote/plugins/admins.py +++ b/sukuinote/plugins/admins.py @@ -3,11 +3,12 @@ from pyrogram import Client, filters from .. import config, help_dict, log_errors, public_log_errors, get_entity ZWS = '\u200B' +FORCE_LTR = '\u200E' def _generate_sexy(entity, ping, is_creator): text = entity.first_name if entity.last_name: text += f' {entity.last_name}' - sexy_text = '[DELETED]' if entity.is_deleted else html.escape(text or 'Empty???') + sexy_text = '[DELETED]' if entity.is_deleted else (html.escape(text or 'Empty???') + FORCE_LTR) if not entity.is_deleted: if ping: sexy_text = f'{sexy_text}'