fix error message

master
Aevann 2024-02-15 20:36:01 +02:00
parent 73226a79a0
commit fad0f736f3
1 changed files with 1 additions and 1 deletions

View File

@ -882,7 +882,7 @@ def shadowban(user_id, v):
reason = filter_emojis_only(reason) reason = filter_emojis_only(reason)
if len(reason) > 256: if len(reason) > 256:
abort(400, "Ban reason is too long (max 256 characters)") abort(400, "Rendered shadowban reason is too long!")
user.shadowban_reason = reason user.shadowban_reason = reason
g.db.add(user) g.db.add(user)