π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(reddit): only retry when RATELIMIT is the sole submit error
Gilad Resisi9fbaf550633b
diff --git a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.tsindex a1a6c219d..6c2ea6fd5 100644--- a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts@@ -523,7 +523,7 @@ export class RedditProvider extends SocialAbstract implements SocialProvider {// A rate limit is a refusal, nothing was submitted: disarm the marker so// the next check re-arms this subreddit and submits it again once the// window has passed, instead of failing the whole post.- if (all.json.errors.some((e: any[]) => e?.[0] === 'RATELIMIT')) {+ if (all.json.errors.every((e: any[]) => e?.[0] === 'RATELIMIT')) {data.armed = undefined;return { status: 'pending', pendingData: data };}