File tree Expand file tree Collapse file tree 2 files changed +1
-2
lines changed
apps/frontend/src/components/new-launch/providers/tiktok
libraries/nestjs-libraries/src/integrations/social Expand file tree Collapse file tree 2 files changed +1
-2
lines changed Original file line number Diff line number Diff 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 } ) }
Original file line number Diff line number Diff 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 } ) ,
You can’t perform that action at this time.
0 commit comments