Handle forward slash in attachments url change
This commit is contained in:
parent
2411714bce
commit
80be02d6a4
@ -203,7 +203,7 @@ export async function onRequestPost(context: RequestContext) {
|
||||
|
||||
for (const urlResult of uploadUrlResults as PromiseFulfilledResult<string>[]) {
|
||||
uploadUrls.push(urlResult.value);
|
||||
attachments.push(new URL(urlResult.value).pathname.replace(/^t\//, ""));
|
||||
attachments.push(new URL(urlResult.value).pathname.replace(/^\/?t\//, ""));
|
||||
}
|
||||
|
||||
await context.env.DATA.put(
|
||||
|
Loading…
x
Reference in New Issue
Block a user