From a67adb1e6cf0781b2f0da7705c3f40d9b1fc49a2 Mon Sep 17 00:00:00 2001 From: Tarrgon <61888458+Tarrgon@users.noreply.github.com> Date: Mon, 6 Jul 2026 21:48:32 -0400 Subject: [PATCH] Serialize messages with hashed author id --- src/utils/message-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/message-utils.ts b/src/utils/message-utils.ts index 5d4091d..d1d59fe 100644 --- a/src/utils/message-utils.ts +++ b/src/utils/message-utils.ts @@ -10,7 +10,7 @@ export function serializeMessage(message: Message): string[] { const attachments = message.attachments.map(a => `${a.name}:${a.id}`); const stickers = message.stickers.map(s => `${s.name}:${s.id}`); - return [Encrypter.encrypt(message.id), Encrypter.hash(message.id), Encrypter.encrypt(message.author.id), Encrypter.encrypt(message.author.username), message.channelId, attachments.join(ARRAY_SEPARATOR), stickers.join(ARRAY_SEPARATOR), Encrypter.encrypt(message.content)]; + return [Encrypter.encrypt(message.id), Encrypter.hash(message.id), Encrypter.encrypt(message.author.id), Encrypter.hash(message.author.id), Encrypter.encrypt(message.author.username), message.channelId, attachments.join(ARRAY_SEPARATOR), stickers.join(ARRAY_SEPARATOR), Encrypter.encrypt(message.content)]; } export function deserializeMessage(loggedMessage: LoggedMessage): LoggedMessage {