Skip to content

fix tiktok media proxy urls#90

Merged
rosethornbush merged 1 commit into
mainfrom
fix/tiktok-video-urls
Jun 23, 2026
Merged

fix tiktok media proxy urls#90
rosethornbush merged 1 commit into
mainfrom
fix/tiktok-video-urls

Conversation

@rosethornbush

@rosethornbush rosethornbush commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • stop probing TikTok video URLs from the API worker during media parsing
  • pass TikTok's aweme/v1/play URL through the API response
  • resolve that aweme URL in the bot builder with a range request and Discordbot UA before sending media to Discord

Root cause

The hosted API worker can be blocked by TikTok when it tries to validate media URLs, leaving the transformed post with no media. The bot runtime is a better place to do the final media redirect check because it builds the Discord message immediately before sending it.

Validation

Fixes #86

@changeset-bot

changeset-bot Bot commented Jun 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f79a7c4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
embedly-docs f79a7c4 Commit Preview URL

Branch Preview URL
Jun 23 2026, 03:01 AM

@rosethornbush
rosethornbush merged commit 14ac930 into main Jun 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(platforms): tiktok videos fail to load

1 participant