π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
Merge branch 'main' into fix/tiktok-direct-post-only-settings
Gilad Resisi2209629b759a
diff --cc libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.tsindex 487d54764,d36ccffe9..c5fc64704--- a/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.ts+++ b/libraries/nestjs-libraries/src/dtos/posts/providers-settings/tiktok.dto.ts@@@ -91,7 -47,10 +91,11 @@@ export class TikTokDto@IsString()@JSONSchema({description:- 'DIRECT_POST publishes to the account. UPLOAD only sends the media to the TikTok app inbox as a draft for the user to publish manually, and makes TikTok ignore every other setting here.',+ 'Required. Use "DIRECT_POST" to actually publish the post to TikTok. ' ++ '"UPLOAD" does NOT publish: it only sends the media to the user\'s TikTok app inbox, ' +- 'where they must manually finish and publish it within 24 hours or it is discarded. ' +++ 'where they must manually finish and publish it within 24 hours or it is discarded, ' +++ 'and it makes TikTok ignore every other setting here. ' ++ 'Only use "UPLOAD" when the user explicitly asks to review or edit the post inside the TikTok app before publishing.',})content_posting_method: 'DIRECT_POST' | 'UPLOAD';}diff --cc libraries/nestjs-libraries/src/integrations/social/tiktok.provider.tsindex 38db3c082,6838f50b7..fff84f7ca--- a/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/tiktok.provider.ts@@@ -19,12 -19,9 +19,12 @@@ import { Integration } from '@prisma/climport { Rules } from '@gitroom/nestjs-libraries/chat/rules.description.decorator';@Rules(- 'TikTok can have one video or one picture or multiple pictures, it cannot be without an attachment. ' +- 'For the "content_posting_method" setting always use "DIRECT_POST" unless the user explicitly asks to review or edit the post inside the TikTok app before publishing. ' +- '"UPLOAD" does NOT publish the post: it only sends it to the user\'s TikTok app inbox, where they must manually complete it within 24 hours or it is discarded.'+ [+ 'TikTok can have one video or one picture or multiple pictures, it cannot be without an attachment.',- 'content_posting_method=DIRECT_POST publishes the post to the account. content_posting_method=UPLOAD does NOT publish: it only drops the media into the user inbox of the TikTok app, where the user has to finish and publish it manually. Use DIRECT_POST unless the user explicitly asks to review or edit the post inside the TikTok app first.',++ 'content_posting_method=DIRECT_POST publishes the post to the account. content_posting_method=UPLOAD does NOT publish: it only sends the media to the user inbox of the TikTok app, where the user must manually complete and publish it within 24 hours or it is discarded. Use DIRECT_POST unless the user explicitly asks to review or edit the post inside the TikTok app first.',+ 'With content_posting_method=UPLOAD, TikTok ignores every setting except the title / post content. Never tell the user that video_made_with_ai, privacy_level, duet, stitch, comment, autoAddMusic, brand_content_toggle or brand_organic_toggle will be applied in UPLOAD mode - they are silently discarded. If the user asks for any of those settings, tell them it requires DIRECT_POST.',+ 'video_made_with_ai, duet and stitch apply to video posts only. TikTok has no equivalent field for photo posts, so those settings are discarded when the attachment is a picture.',+ ].join(' '))export class TiktokProvider extends SocialAbstract implements SocialProvider {identifier = 'tiktok';