π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: better erroring for X
Nevo David69e39b91b365
diff --git a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts b/libraries/nestjs-libraries/src/integrations/social/x.provider.tsindex 98e9db98e..72d1210ae 100644--- a/libraries/nestjs-libraries/src/integrations/social/x.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/x.provider.ts@@ -34,6 +34,20 @@ export class XProvider extends SocialAbstract implements SocialProvider {value: string;}| undefined {+ if (body.includes('usage-capped')) {+ return {+ type: 'refresh-token',+ value:+ 'Posting failed - capped reached. Please try again later',+ };+ }+ if (body.includes('duplicate-rules')) {+ return {+ type: 'refresh-token',+ value:+ 'You have already posted this post, please wait before posting again',+ };+ }if (body.includes('The Tweet contains an invalid URL.')) {return {type: 'bad-body',