Import Instagram archive to a Bluesky account
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

create video embed is necessary, removing TODO, updated video processing test to not have bad mock logic.

+21 -9
-1
src/app.ts
··· 84 84 videoData.ref = blob.ref.$link; 85 85 } 86 86 87 - // TODO determine if this logic is obsolete now. 88 87 // Create video embed structure 89 88 const videoEmbed = createVideoEmbed(videoData); 90 89
+21 -8
tests/app.test.ts
··· 230 230 231 231 test('should handle video posts correctly', async () => { 232 232 const mockVideoPost = { 233 - creation_timestamp: Date.now() / 1000, 234 - title: 'Test Video Post', 235 - media: [{ 236 - type: 'Video', 237 - creation_timestamp: Date.now() / 1000, 238 - media_url: 'test.mp4', 239 - buffer: Buffer.from('test') 240 - }] 233 + "title": "", 234 + "media": [ 235 + { 236 + "uri": "AQM8KYlOYHTF5GlP43eMroHUpmnFHJh5CnCJUdRUeqWxG4tNX7D43eM77F152vfi4znTzgkFTTzzM4nHa_v8ugmP4WPRJtjKPZX5pko_17845940218109367.mp4", 237 + "creation_timestamp": 1458732736, 238 + "media_metadata": { 239 + "video_metadata": { 240 + "exif_data": [ 241 + { 242 + "latitude": 53.141186112, 243 + "longitude": 11.038734576 244 + } 245 + ] 246 + } 247 + }, 248 + "title": "No filter needed. #waterfall #nature", 249 + "cross_post_source": { 250 + "source_app": "FB" 251 + } 252 + } 253 + ] 241 254 }; 242 255 243 256 (fs.readFileSync as jest.Mock).mockReturnValue(JSON.stringify([mockVideoPost]));