summary refs log tree commit diff
diff options
context:
space:
mode:
authorMathMan05 <mathmanrm@gmail.com>2026-03-04 15:54:52 -0600
committerRory& <root@rory.gay>2026-03-07 00:58:31 +0100
commit4b0aeec05ac6b11c7aae706faca6de2c3f198e9c (patch)
treee8d80621c8026688d25866aee95f8b6e4145cc74
parentfix typo (diff)
downloadserver-ts-4b0aeec05ac6b11c7aae706faca6de2c3f198e9c.tar.xz
inline constant
-rw-r--r--src/api/util/handlers/Message.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts

index b96dfc9f..d2d749c7 100644 --- a/src/api/util/handlers/Message.ts +++ b/src/api/util/handlers/Message.ts
@@ -151,9 +151,8 @@ async function processMedia(media: UnfurledMediaItem, messageId: string, batchId }, }); } - const url2 = `${Config.get().cdn.endpointPrivate}/attachments/${attEnt.uploadFilename}/clone_to_message/${messageId}`; - const cloneResponse = await fetch(url2, { + const cloneResponse = await fetch(`${Config.get().cdn.endpointPrivate}/attachments/${attEnt.uploadFilename}/clone_to_message/${messageId}`, { method: "POST", headers: { signature: Config.get().security.requestSignature || "",