-
Notifications
You must be signed in to change notification settings - Fork 1
Description
Micro.blog iOS 3.3 (319)
- Open new post screen
- Click photo icon
- Select photo
- Photo shown to be uploading, with progress bar above thumbnail
- One photo uploaded, thumbnail turns white
- Enter text
- Click ‘Post’
- Error message: ‘Something went wrong. Please try again later’
- Wait for photo to appear at location returned by media endpoint
- Thumbnail shows photo again.
- Click ‘Post’ again
- Post is published
(…or at least it was the first time. Second time I tried this, I kept getting the same error message, but turns out each time I clicked ‘Post’, another version of the post was saved to my database. This might be a combination of bugs in both Micro.blog and Indiekit!)
Background
When a photo is uploaded to Indiekit, it returns a URL for where the image will be published. As that typically involves committing the file to a git repo, and then a service like Netlify publishing the file to a public URL, it can take ~1 minute for the file to appear at the location specified. I believe my media endpoint returns a 202 Accepted response alongside the Location header, I can’t remember.
Either way, I’m not sure if Micro.blog should care if an image location returns 404 initially… or at least for the case of third-party Micropub endpoints.