mirror of
https://github.com/spacebarchat/server.git
synced 2026-08-28 11:44:07 +00:00
Add Decorators to clean classes before json serialization and remove invalid states.
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user