feat: tiktok fixes
This commit is contained in:
parent
a098d612af
commit
80d8804f5a
2 changed files with 24 additions and 1 deletions
|
|
@ -118,6 +118,7 @@ const TikTokSettings: FC<{
|
|||
</option>
|
||||
))}
|
||||
</Select>
|
||||
{isUploadMode && <div className="-mt-[23px] mb-[23px] text-red-600">After posting you fill find a notification inside your Inbox about your post (not content studio)</div>}
|
||||
<Select
|
||||
label={t('label_auto_add_music', 'Auto add music')}
|
||||
{...register('autoAddMusic', {
|
||||
|
|
|
|||
|
|
@ -395,7 +395,7 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
|
|||
|
||||
if (status === 'SEND_TO_USER_INBOX') {
|
||||
return {
|
||||
url: 'https://www.tiktok.com/tiktokstudio/content?tab=post',
|
||||
url: 'https://www.tiktok.com/messages?lang=en',
|
||||
id: Math.floor(Math.random() * 1000000 + 100000),
|
||||
};
|
||||
}
|
||||
|
|
@ -497,6 +497,17 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
|
|||
: {}),
|
||||
...((firstPost?.media?.[0]?.path?.indexOf('mp4') || -1) > -1
|
||||
? {
|
||||
post_info: {
|
||||
...((firstPost?.settings?.title && isPhoto) ||
|
||||
(firstPost.message && !isPhoto)
|
||||
? {
|
||||
title: isPhoto
|
||||
? firstPost.settings.title
|
||||
: firstPost.message,
|
||||
}
|
||||
: {}),
|
||||
...(isPhoto ? { description: firstPost.message } : {}),
|
||||
},
|
||||
source_info: {
|
||||
source: 'PULL_FROM_URL',
|
||||
video_url: firstPost?.media?.[0]?.path!,
|
||||
|
|
@ -509,6 +520,17 @@ export class TiktokProvider extends SocialAbstract implements SocialProvider {
|
|||
},
|
||||
}
|
||||
: {
|
||||
post_info: {
|
||||
...((firstPost?.settings?.title && isPhoto) ||
|
||||
(firstPost.message && !isPhoto)
|
||||
? {
|
||||
title: isPhoto
|
||||
? firstPost.settings.title
|
||||
: firstPost.message,
|
||||
}
|
||||
: {}),
|
||||
...(isPhoto ? { description: firstPost.message } : {}),
|
||||
},
|
||||
source_info: {
|
||||
source: 'PULL_FROM_URL',
|
||||
photo_cover_index: 0,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue