/video follows TikTok schema

This commit is contained in:
Pablo Ferreiro 2022-03-14 11:50:47 +01:00
parent c682432920
commit 6eee156541
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
6 changed files with 24 additions and 15 deletions

View file

@ -15,7 +15,9 @@ class RedirectController {
} else if (isset($_GET['music'])) {
$endpoint = '/music/' . $_GET['music'];
} else if (isset($_GET['video'])) {
$endpoint = '/video/' . $_GET['video'];
// The @username part is not used, but
// it is the schema that TikTok follows
$endpoint = '/@placeholder/video/' . $_GET['video'];
}
$url = Misc::url($endpoint);