feat: video made with ai

This commit is contained in:
Nevo David 2025-08-02 17:54:26 +07:00
parent 69e39b91b3
commit 94064dfa78
4 changed files with 19 additions and 6 deletions

View File

@ -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} />}
<Select
label={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,
})}
/>
<Checkbox
variant="hollow"
label={t('label_disclose_video_content', 'Disclose Video Content')}

View File

@ -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;

View File

@ -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:

View File

@ -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",