Closed
Description
Moving this below
if reason:
reason = textwrap.shorten(reason, width=512, placeholder="...")
causes a change in behaviour.
I assume the behaviour we want is for the full message to be sent to the database, but the reason to be trimmed in the audit log (I assume because there's a limit there), but now it's also trimmed in the database.
Originally posted by @wookie184 in #2316 (comment)
We should modify the tests to catch this too
You can do that here if you want otherwise I can open an issue for it.