Remove leading slash for no processing required videos
This commit is contained in:
parent
237765a89e
commit
0edbe2acec
@ -206,7 +206,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