Try skip polling

For large medias, API returns 202 Accepted and media is still processing https://docs.joinmastodon.org/methods/media/#v2

masto.js does extra manual poll check by GET-ing the media after uploaded to see if the media is done processing
This commit is contained in:
Lim Chee Aun 2022-12-15 21:34:21 +08:00
parent 31b3d824cd
commit 45babb150b

View file

@ -520,6 +520,7 @@ function Compose({
const params = { const params = {
file, file,
description, description,
skipPolling: true,
}; };
return masto.mediaAttachments.create(params).then((res) => { return masto.mediaAttachments.create(params).then((res) => {
if (res.id) { if (res.id) {