mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-21 06:50:56 +00:00
added clean_data to places after a member is created but not constructed to allow proper json creation.
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user