π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
feat: threads error mapping
Nevo Davidd5e905f46fa5
diff --git a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts b/libraries/nestjs-libraries/src/integrations/social/threads.provider.tsindex 0795c29a7..0c89c0a51 100644--- a/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/threads.provider.ts@@ -45,10 +45,19 @@ export class ThreadsProvider extends SocialAbstract implements SocialProvider {return { type: 'refresh-token', value: 'Threads access token expired' };}+ if (body.includes('2207051')) {+ return {+ type: 'bad-body',+ value:+ 'Error from Meta: We restrict certain activity to protect our community',+ };+ }+if (body.includes('The media could not be fetched from this URI')) {return {type: 'bad-body',- value: 'One of the media URLs is invalid or inaccessible, make sure it\'s being uploaded to Postiz first',+ value:+ "One of the media URLs is invalid or inaccessible, make sure it's being uploaded to Postiz first",};}if (body.includes('text must be at most 500 characters')) {