diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts index 3cb85468..a40e0175 100644 --- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts +++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts @@ -126,13 +126,6 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider { }; } - if (body.indexOf('spam_risk') > -1) { - return { - type: 'bad-body' as const, - value: 'TikTok detected potential spam', - }; - } - if (body.indexOf('spam_risk_too_many_posts') > -1) { return { type: 'bad-body' as const, @@ -148,6 +141,13 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider { }; } + if (body.indexOf('spam_risk') > -1) { + return { + type: 'bad-body' as const, + value: 'TikTok detected potential spam', + }; + } + if (body.indexOf('reached_active_user_cap') > -1) { return { type: 'bad-body' as const,