Skip to content

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

feat: tiktok fix

Nevo Davidb23298904ab6
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
index afe532537..e74868b1c 100644
--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts
@@ -83,6 +83,13 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
};
}
+ if (body.indexOf('app_version_check_failed') > -1) {
+ return {
+ type: 'bad-body' as const,
+ value: 'In order to use the TikTok upload feature, you have to update your app to the latest version',
+ };
+ }
+
if (body.indexOf('duration_check_failed') > -1) {
return {
type: 'bad-body' as const,
@@ -129,7 +136,8 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
if (body.indexOf('spam_risk_too_many_posts') > -1) {
return {
type: 'bad-body' as const,
- value: 'TikTok says your daily post limit reached, please try again tomorrow',
+ value:
+ 'TikTok says your daily post limit reached, please try again tomorrow',
};
}