π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: tiktok default parameters
Nevo David785b04b93d99
diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex 409cdf44e..b7da8119e 100644--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@ -256,18 +256,18 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {Authorization: `Bearer ${accessToken}`,},body: JSON.stringify({- ...(firstPost.settings.content_posting_method === 'DIRECT_POST'+ ...((firstPost?.settings?.content_posting_method || 'DIRECT_POST') === 'DIRECT_POST'? {post_info: {title: firstPost.message,- privacy_level: firstPost.settings.privacy_level,- disable_duet: !firstPost.settings.duet,- disable_comment: !firstPost.settings.comment,- disable_stitch: !firstPost.settings.stitch,+ privacy_level: firstPost.settings.privacy_level || 'PUBLIC_TO_EVERYONE',+ disable_duet: !firstPost.settings.duet || false,+ disable_comment: !firstPost.settings.comment || false,+ disable_stitch: !firstPost.settings.stitch || false,brand_content_toggle:- firstPost.settings.brand_content_toggle,+ firstPost.settings.brand_content_toggle || false,brand_organic_toggle:- firstPost.settings.brand_organic_toggle,+ firstPost.settings.brand_organic_toggle || false,...((firstPost?.media?.[0]?.url?.indexOf('mp4') || -1) ===-1? {