diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-25 11:41:28 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-25 11:41:28 +1000 |
commit | 979b339eac9a17dcc65ef1b9098835490346f98e (patch) | |
tree | 94031319fcad913d55757c14593b7d0de9b9be52 | |
parent | Add discrim verify in PATCH /users/@me (diff) | |
download | server-979b339eac9a17dcc65ef1b9098835490346f98e.tar.xz |
Allow edited_timestamp to passthrough in handleMessage
-rw-r--r-- | api/src/util/handlers/Message.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/api/src/util/handlers/Message.ts b/api/src/util/handlers/Message.ts index 8980b4cc..398b8914 100644 --- a/api/src/util/handlers/Message.ts +++ b/api/src/util/handlers/Message.ts @@ -56,7 +56,6 @@ export async function handleMessage(opts: MessageOptions): Promise<Message> { embeds: opts.embeds || [], reactions: /*opts.reactions ||*/[], type: opts.type ?? 0, - edited_timestamp: null }); if (message.content && message.content.length > Config.get().limits.message.maxCharacters) { @@ -151,7 +150,7 @@ export async function postHandleMessage(message: Message) { const data = { ...message }; data.embeds = data.embeds.filter((x) => x.type !== "link"); - links = links.slice(0, 20); // embed max 20 links — TODO: make this configurable with instance policies + links = links.slice(0, 20) as RegExpMatchArray; // embed max 20 links — TODO: make this configurable with instance policies const { endpointPublic, resizeWidthMax, resizeHeightMax } = Config.get().cdn; |