π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(pinterest): map the "not permitted to access that resource" pin error
Gilad Resisi538f3e6fd8e3
diff --git a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.tsindex 40251c71d..2c52e1b82 100644--- a/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/pinterest.provider.ts@@ -144,6 +144,13 @@ export class PinterestProvidervalue: 'The specified board was not found. Please check the board ID.',};}+ if (body.indexOf('You are not permitted to access that resource') > -1) {+ return {+ type: 'bad-body' as const,+ value:+ 'The connected Pinterest account is not permitted to post to this board. Please check the board ID and that the account owns or can write to the board.',+ };+ }if (body.indexOf('cover_image_url or cover_image_content_type') > -1) {return {type: 'bad-body' as const,