Skip to content

Commit 997fd76

Browse files
committed
feat: disabled
1 parent 569c433 commit 997fd76

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

apps/frontend/src/components/new-launch/providers/tiktok/tiktok.provider.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ const TikTokSettings: FC<{
176176
</div>
177177
<Select
178178
label={t('label_content_posting_method', 'Content posting method')}
179-
disabled={isUploadMode}
180179
{...register('content_posting_method', {
181180
value: 'DIRECT_POST',
182181
})}

libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
490490
photo_cover_index: 0,
491491
photo_images: firstPost.media?.map((p) => p.path),
492492
},
493-
post_mode: 'DIRECT_POST',
493+
post_mode: firstPost?.settings?.content_posting_method === 'DIRECT_POST' ? 'DIRECT_POST' : 'MEDIA_UPLOAD',
494494
media_type: 'PHOTO',
495495
}),
496496
}),

0 commit comments

Comments
 (0)