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
pull/5/head
Lim Chee Aun 2022-12-15 21:34:21 +08:00
rodzic 31b3d824cd
commit 45babb150b
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

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