|
|
@ -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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|