forked from MarseyWorld/MarseyWorld
fds
parent
cc3788bd8d
commit
74a291e975
|
@ -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>''')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue