π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
Feat: tiktok fixes
Nevo Davidf7f5899d01c5
diff --git a/apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx b/apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsxindex 9fc74e7fd..7ed473af2 100644--- a/apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx+++ b/apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx@@ -83,7 +83,7 @@ const TikTokSettings: FC<{return (<div className="flex flex-col">{/*<CheckTikTokValidity picture={props?.values?.[0]?.image?.[0]?.path} />*/}- {isTitle && <Input label="Title" {...register('title')} maxLength={90} />}+ {isTitle && <Input label="Title" {...register('title')} maxLength={89} />}<Selectlabel={t('label_who_can_see_this_video', 'Who can see this video?')}disabled={isUploadMode}diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex 011dc3d80..3cb854684 100644--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@ -447,7 +447,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {return {post_info: {...(isPhoto && firstPost.settings.title- ? { title: firstPost.settings.title }+ ? { title: firstPost.settings.title.slice(0, 90) }: {}),...(!isPhoto && firstPost.message? { title: firstPost.message }@@ -455,15 +455,21 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {...(isPhoto ? { description: firstPost.message } : {}),privacy_level:firstPost.settings.privacy_level || 'PUBLIC_TO_EVERYONE',- disable_duet: !firstPost.settings.duet || false,+ ...(isPhoto+ ? {}+ : { disable_duet: !firstPost.settings.duet || false }),disable_comment: !firstPost.settings.comment || false,- disable_stitch: !firstPost.settings.stitch || false,- is_aigc: firstPost.settings.video_made_with_ai || false,+ ...(isPhoto+ ? {}+ : { disable_stitch: !firstPost.settings.stitch || false }),+ ...(isPhoto+ ? {}+ : { is_aigc: firstPost.settings.video_made_with_ai || false }),brand_content_toggle:firstPost.settings.brand_content_toggle || false,brand_organic_toggle:firstPost.settings.brand_organic_toggle || false,- ...((firstPost?.media?.[0]?.path?.indexOf('mp4') || -1) === -1+ ...(isPhoto? {auto_add_music: firstPost.settings.autoAddMusic === 'yes',}@@ -524,6 +530,10 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {const [firstPost] = postDetails;const isPhoto = (firstPost?.media?.[0]?.path?.indexOf('mp4') || -1) === -1;+ console.log({+ ...this.buildTikokPostInfoBody(firstPost),+ ...this.buildTikokSourceInfoBody(firstPost),+ });const {data: { publish_id },} = await (