forked from MarseyWorld/MarseyWorld
make the pings that dont notify (due to blocks) not linked again
parent
075d9de79b
commit
e464d98580
|
@ -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>'
|
||||
|
||||
|
|
Loading…
Reference in New Issue