feat: LinkedIn video upload working + static file serving

- Add /public static route to serve files from /vaults/public
- Fix LinkedIn API version: 202501 → 202603 (active version)
- OpenAPI schema already included POST /api/linkedin/video
- Successfully posted Remotion video to LinkedIn
This commit is contained in:
Garfield
2026-05-11 13:14:42 -04:00
parent c2eabd8e66
commit de9d74bb2b
3 changed files with 29 additions and 2 deletions

View File

@@ -133,7 +133,7 @@ async function linkedinRestRequest(
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json',
'LinkedIn-Version': '202501',
'LinkedIn-Version': '202603',
'X-Restli-Protocol-Version': '2.0.0',
},
body: body ? JSON.stringify(body) : undefined,
@@ -224,7 +224,7 @@ export async function createVideoPost(
headers: {
'Authorization': `Bearer ${accessToken}`,
'Content-Type': 'application/json',
'LinkedIn-Version': '202501',
'LinkedIn-Version': '202603',
'X-Restli-Protocol-Version': '2.0.0',
},
body: JSON.stringify({