Merge branch 'master' into secrets
This commit is contained in:
4
sync.js
4
sync.js
@@ -110,7 +110,9 @@ async function doWork() {
|
||||
|
||||
//Download the media to our server
|
||||
const parts = post.media_url.split('/');
|
||||
const fileName = parts[parts.length - 1].split('?')[0];
|
||||
// HACK: despite the .heic extensions, these are JPEG files right now
|
||||
// This will probably change in the future and break things.
|
||||
const fileName = parts[parts.length - 1].split('?')[0].replace('.heic', '.jpg');
|
||||
|
||||
const downloader = new Downloader({
|
||||
url: post.media_url,
|
||||
|
||||
Reference in New Issue
Block a user