π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(instagram): map the rejected comment error 1772107 to a readable message
Gilad Resisi454553c4ff17
diff --git a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.tsindex 35bbd4409..4f049fa47 100644--- a/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/instagram.provider.ts@@ -383,6 +383,14 @@ export class InstagramProvider};}+ if (body.indexOf('1772107') > -1) {+ return {+ type: 'bad-body' as const,+ value:+ 'Instagram did not add the comment, the post itself was published. Please try again with different comment text',+ };+ }+if (body.indexOf('2207082') > -1) {return {type: 'retry' as const,