Add Decorators to clean classes before json serialization and remove invalid states.

This commit is contained in:
whinis
2026-02-17 18:20:31 +01:00
committed by Rory&
parent 961cb9a7e2
commit 9bd8fc2c09
4 changed files with 59 additions and 1 deletions
+1 -1
View File
@@ -486,7 +486,7 @@ export async function postHandleMessage(message: Message) {
const content = message.content?.replace(/ *`[^)]*` */g, ""); // remove markdown
const linkMatches = content?.match(LINK_REGEX) || [];
message.clean_data();
const data = { ...message };
const currentNormalizedUrls = new Set<string>();