make the pings that dont notify (due to blocks) not linked again

pull/143/head
Aevann 2023-04-25 13:27:44 +02:00
parent 075d9de79b
commit e464d98580
1 changed files with 1 additions and 1 deletions

View File

@ -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'<a href="/id/{u.id}"><img loading="lazy" src="/pp/{u.id}">@{u.username}</a>'