TikTok: link private posts to the profile (TikTok gives no public post id)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
6dc35c8c8b
commit
014d96ddaf
@ -162,6 +162,8 @@ export default {
|
|||||||
const done = await waitForPost(token, publishId);
|
const done = await waitForPost(token, publishId);
|
||||||
const postId = done.publicaly_available_post_id?.[0];
|
const postId = done.publicaly_available_post_id?.[0];
|
||||||
const user = conn.account?.username;
|
const user = conn.account?.username;
|
||||||
return { id: postId ? String(postId) : publishId, publishId, status: done.status, permalink: postId && user ? `https://www.tiktok.com/@${user}/video/${postId}` : null };
|
// Private ("Only me") posts get no public post id from TikTok; link to the profile so the user can find it.
|
||||||
|
const permalink = user ? (postId ? `https://www.tiktok.com/@${user}/video/${postId}` : `https://www.tiktok.com/@${user}`) : null;
|
||||||
|
return { id: postId ? String(postId) : publishId, publishId, status: done.status, permalink };
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user