fix admin getting shadowbanned when they shadowban someone

master
Aevann 2024-10-22 15:09:28 +03:00
parent 1d3fb0a19d
commit f62e726c3c
1 changed files with 1 additions and 1 deletions

View File

@ -893,7 +893,7 @@ def shadowban(user_id, v):
reason = reason_regex_post.sub(r'<a href="\1">\1</a>', reason) reason = reason_regex_post.sub(r'<a href="\1">\1</a>', reason)
reason = reason_regex_comment.sub(r'<a href="\1#context">\1</a>', reason) reason = reason_regex_comment.sub(r'<a href="\1#context">\1</a>', reason)
v.shadowban(reason=reason) user.shadowban(reason=reason)
check_for_alts(user) check_for_alts(user)