π¨ The ultimate agentic social media scheduling tool π€
TypeScript nextjsopen-sourceopen-source-social-media-scheduling-toolosspostiz-cloudpostiz-hostedredisscheduling-toolsocial-media-scheduling-tooltypescript
fix(reddit): also strip a prefix-less r/ from subreddit names
Gilad Resisib52cd59826b1
diff --git a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.tsindex bdd206f7c..3d4eac585 100644--- a/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts+++ b/libraries/nestjs-libraries/src/integrations/social/reddit.provider.ts@@ -443,7 +443,7 @@ export class RedditProvider extends SocialAbstract implements SocialProvider {// finds the armed marker and asks Reddit instead of resubmitting blindly.const value = data.subreddits[data.cursor].value;data.armed = {- sr: value.subreddit.replace('/r/', '').replace(/^\/+|\/+$/g, '').toLowerCase(),+ sr: value.subreddit.replace(/^\/?r\//, '').replace(/^\/+|\/+$/g, '').toLowerCase(),title: value.title || '',armedAt: Date.now(),media: value.type === 'media',@@ -502,7 +502,7 @@ export class RedditProvider extends SocialAbstract implements SocialProvider {}: {}),text: data.message,- sr: value.subreddit.replace('/r/', '').replace(/^\/+|\/+$/g, '').toLowerCase(),+ sr: value.subreddit.replace(/^\/?r\//, '').replace(/^\/+|\/+$/g, '').toLowerCase(),};const all = await (