Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove leading slash for no processing required videos
  • Loading branch information
regalijan committed Mar 26, 2024
1 parent 237765a commit 0edbe2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/api/reports/submit.ts
Expand Up @@ -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(
Expand Down

0 comments on commit 0edbe2a

Please sign in to comment.