mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-24 10:15:37 +03:00
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
1 changed files with 1 additions and 0 deletions
|
@ -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