diff --git a/node_app/mastodonHandler.js b/node_app/mastodonHandler.js index aec7486..2741696 100644 --- a/node_app/mastodonHandler.js +++ b/node_app/mastodonHandler.js @@ -15,7 +15,7 @@ export class MastodonHandler extends Mastodon{ } this.post('media', { file: fs.createReadStream(mediaPath) }).then(resp => { if (!resp.data.id){ - this.postMedia(status, mediaPath, --retry); + this.postMedia(status, mediaPath, --retry, onError); console.log("issue while uploading, retry") return; }