fix missing callback

master
adb 4 years ago
parent 95f537024b
commit ef17b4467c

@ -15,7 +15,7 @@ export class MastodonHandler extends Mastodon{
} }
this.post('media', { file: fs.createReadStream(mediaPath) }).then(resp => { this.post('media', { file: fs.createReadStream(mediaPath) }).then(resp => {
if (!resp.data.id){ if (!resp.data.id){
this.postMedia(status, mediaPath, --retry); this.postMedia(status, mediaPath, --retry, onError);
console.log("issue while uploading, retry") console.log("issue while uploading, retry")
return; return;
} }

Loading…
Cancel
Save