π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: video made with ai
Nevo David94064dfa78fe
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 03c1fcfdb..29c83f10f 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@@ -149,9 +149,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={90} />}<Selectlabel={t('label_who_can_see_this_video', 'Who can see this video?')}hideErrors={true}@@ -238,7 +236,14 @@ const TikTokSettings: FC<{/></div><hr className="my-[15px] mb-[25px] border-tableBorder" />- <div className="flex flex-col">+ <div className="flex flex-col gap-[20px]">+ <Checkbox+ label={t('video_made_with_ai', 'Video made with AI')}+ variant="hollow"+ {...register('video_made_with_ai', {+ value: false,+ })}+ /><Checkboxvariant="hollow"label={t('label_disclose_video_content', 'Disclose Video Content')}diff --git a/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.ts b/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.tsindex dfeed9e1e..8417315f8 100644--- a/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.ts+++ b/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.ts@@ -1,7 +1,9 @@-import { IsBoolean, ValidateIf, IsIn, IsString, MaxLength } from 'class-validator';+import {+ IsBoolean, ValidateIf, IsIn, IsString, MaxLength, IsOptional+} from 'class-validator';export class TikTokDto {- @ValidateIf(p => p.title)+ @ValidateIf((p) => p.title)@MaxLength(90)title: string;@@ -33,6 +35,10 @@ export class TikTokDto {@IsBoolean()brand_content_toggle: boolean;+ @IsBoolean()+ @IsOptional()+ video_made_with_ai: boolean;+@IsBoolean()brand_organic_toggle: boolean;diff --git a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex 6a37dc10a..c33ab2603 100644--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@ -461,6 +461,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {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,brand_content_toggle:firstPost.settings.brand_content_toggle || false,brand_organic_toggle:diff --git a/libraries/react-shared-libraries/src/translation/locales/en/translation.json b/libraries/react-shared-libraries/src/translation/locales/en/translation.jsonindex b6d3d6740..b58da9ad7 100644--- a/libraries/react-shared-libraries/src/translation/locales/en/translation.json+++ b/libraries/react-shared-libraries/src/translation/locales/en/translation.json@@ -10,6 +10,7 @@"save": "Save","send_test": "Send Test","select_role": "Select Role",+ "video_made_with_ai": "Video made with AI","please_add_at_least": "Please add at least 20 chars","send_invitation_via_email": "Send invitation via email?","copy_id": "Copy Channel ID",