1 files changed, 1 insertions, 0 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts
index 4dc4fb83..c0d26dc5 100644
--- a/src/api/util/handlers/Message.ts
+++ b/src/api/util/handlers/Message.ts
@@ -171,6 +171,7 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> {
message.author = await User.findOneOrFail({
where: { id: opts.author_id },
});
+ message.author.clean_data();
const rights = await getRights(opts.author_id);
rights.hasThrow("SEND_MESSAGES");
}
|