From 76952d4f4300ca43d8c563602d512c9898b1346f Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 8 Sep 2023 20:06:36 +0300 Subject: [PATCH] make mentioning someone who muted u blank to signify the lack of notif --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 82b8b812a..f9643a0d5 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -468,7 +468,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis def replacer(m): u = users_dict.get(m.group(1).lower()) - if not u or (v and u.id in v.all_twoway_blocks): + if not u or (v and u.id in v.all_twoway_blocks) or (v and u.has_muted(v)): return m.group(0) return f'@{u.username}'