forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-04-20 00:24:43 +02:00
parent cc3788bd8d
commit 74a291e975
1 changed files with 1 additions and 1 deletions

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>''')