This commit is contained in:
Aevann1 2022-04-20 00:24:43 +02:00
parent 259fa285f4
commit ba0f4e69f2

View file

@ -116,7 +116,7 @@ def sanitize(sanitized, alert=False, comment=False, edit=False):
u = get_user(i.group(2), graceful=True)
if u and (not g.v.any_block_exists(u) or g.v.admin_level > 1):
if u and (not (g.v and g.v.any_block_exists(u)) or g.v.admin_level > 1):
sanitized = sanitized.replace(i.group(0), f'''{i.group(1)}<a href="/id/{u.id}"><img loading="lazy" src="/pp/{u.id}">@{u.username}</a>''')