Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

fix(tiktok): resolve photo publish ids too

Gilad Resisi4637a5190be8
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
index 4e7af617f..7f2e453c5 100644
--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
@@ -1143,13 +1143,13 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
}
// Posts published before moderation finished keep their publish_id
- // (v_pub_url~... / v_pub_file~...) as releaseId - resolve it to the video id
+ // (v_pub_file~... / p_pub_url~...) as releaseId - resolve it to the post id
async resolveReleaseId(
accessToken: string,
releaseId: string,
integration: Integration
) {
- if (releaseId.indexOf('v_pub_') === -1) {
+ if (releaseId.indexOf('_pub_') === -1) {
return undefined;
}