fix missing callback
This commit is contained in:
		
							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…
	
		Reference in New Issue
	
	Block a user