Skip to content

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

fix(tiktok-business): store the post URL when a post is connected by hand

Gilad Resisi541c7a454c83
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.business.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.business.provider.ts
index 31c672fbe..33a48c931 100644
--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.business.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.business.provider.ts
@@ -1177,6 +1177,16 @@ export class TiktokBusinessProvider
};
}
+ // a post connected by hand: /video/<id> also reaches photo posts, TikTok
+ // redirects it to /photo/<id>
+ async releaseUrl(
+ accessToken: string,
+ releaseId: string,
+ integration: Integration
+ ) {
+ return `https://www.tiktok.com/@${integration.profile}/video/${releaseId}`;
+ }
+
async postAnalytics(
integrationId: string,
accessToken: string,