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:
parent
31b3d824cd
commit
45babb150b
|
@ -520,6 +520,7 @@ function Compose({
|
|||
const params = {
|
||||
file,
|
||||
description,
|
||||
skipPolling: true,
|
||||
};
|
||||
return masto.mediaAttachments.create(params).then((res) => {
|
||||
if (res.id) {
|
||||
|
|
Loading…
Reference in a new issue