also looking at this
feat: crossposting — media (LinkedIn/IG/Threads), OAuth token refresh, and X/Twitter
#30
28 files
+1810
-109
| @@ -7,6 +7,7 @@ import { instagram } from './InstagramService' | ||
| 7 | 7 | import { linkedin } from './LinkedInService' |
| 8 | 8 | import { mastodon } from './MastodonService' |
| 9 | 9 | import { threads } from './ThreadsService' |
| 10 | import { twitter } from './TwitterService' | |
| 10 | 11 | import { ensureAccount, now, uuid } from './support' |
| 11 | 12 | |
| 12 | 13 | const database = db as any |
| @@ -18,6 +19,7 @@ interface ProviderPublisher { | ||
| 18 | 19 | // Each provider owns its own connection/token handling behind `publishToPost`. |
| 19 | 20 | const publishers: Partial<Record<SocialProvider, ProviderPublisher>> = { |
| 20 | 21 | bluesky, |
| 22 | twitter, | |
| 21 | 23 | linkedin, |
| 22 | 24 | instagram, |
| 23 | 25 | threads, |