ReviewOS

also looking at this

stacks/postline

feat: crosspost to LinkedIn and Instagram

#1
Merged chris wants to merge feat/crosspost-linkedin-instagram into main
31 files +2335 -87
app/Services/Social/DriverRegistry.tsmodified+5-0
Changes to app/Services/Social/DriverRegistry.ts
@@ -1,8 +1,13 @@
11import type { SocialDriver, SocialProvider } from '../../Support/Social/types'
2import { env } from '@stacksjs/env'
23import { BlueskyDriver } from './Drivers/BlueskyDriver'
4import { InstagramDriver } from './Drivers/InstagramDriver'
5import { LinkedInDriver } from './Drivers/LinkedInDriver'
36
47const drivers: Partial<Record<SocialProvider, SocialDriver>> = {
58 bluesky: new BlueskyDriver(),
9 linkedin: new LinkedInDriver({ apiVersion: String(env.LINKEDIN_API_VERSION || '202405') }),
10 instagram: new InstagramDriver({ graphVersion: String(env.INSTAGRAM_GRAPH_VERSION || 'v21.0') }),
611}
712
813export function getSocialDriver(provider: SocialProvider): SocialDriver {