mirror of
https://github.com/imputnet/cobalt.git
synced 2025-01-22 14:31:41 +00:00
api/tiktok: update domain because dns records for main one are gone
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run service tests / test service functionality (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Run service tests / test service: ${{ matrix.service }} (push) Has been cancelled
closes #1057
This commit is contained in:
parent
ce7d553beb
commit
ef687750b4
|
@ -30,7 +30,7 @@ export default async function(obj) {
|
||||||
if (!postId) return { error: "fetch.short_link" };
|
if (!postId) return { error: "fetch.short_link" };
|
||||||
|
|
||||||
// should always be /video/, even for photos
|
// should always be /video/, even for photos
|
||||||
const res = await fetch(`https://tiktok.com/@i/video/${postId}`, {
|
const res = await fetch(`https://www.tiktok.com/@i/video/${postId}`, {
|
||||||
headers: {
|
headers: {
|
||||||
"user-agent": genericUserAgent,
|
"user-agent": genericUserAgent,
|
||||||
cookie,
|
cookie,
|
||||||
|
|
Loading…
Reference in a new issue