From e464d98580a7bc617c97edef7713c44002f40fe4 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 25 Apr 2023 13:27:44 +0200 Subject: [PATCH] make the pings that dont notify (due to blocks) not linked again --- 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 fdb3e98b9..c78fef77e 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -370,7 +370,7 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=True, count_emojis= def replacer(m): u = users_dict.get(m.group(1).lower()) - if not u: + if not u or u.id in v.all_twoway_blocks: return m.group(0) return f'@{u.username}'