You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When posting a note with a photo, Icro sends the following request to a Micropub endpoint:
h = "entry"
name = ""
content = "Martello tower.\n" + "![96053175-02F9-4950-86D7-F960971FE008.jpg(https://getindiekit.github.io/sandbox/media/photos/2020/09/05/6q5e4.jpg)"
However, if a post contains a photo, the photo(s) should be sent using the photo property. So in the above case, the following would be sent instead:
h = "entry"
name = ""
content = "Martello tower"
photo[] = "https://getindiekit.github.io/sandbox/media/photos/2020/09/05/6q5e4.jpg"
mp-photo-alt[] = "96053175-02F9-4950-86D7-F960971FE008.jpg"
This structured format has many benefits. First, it means a server can identify the type of post (note or photo) and potentially process it differently; perhaps using a different permalink format.
It also means authors can work with the content and photo(s) data individually. For example, with the current data provided, it’s not possible to output the following HTML:
When posting a note with a photo, Icro sends the following request to a Micropub endpoint:
However, if a post contains a photo, the photo(s) should be sent using the
photo
property. So in the above case, the following would be sent instead:This structured format has many benefits. First, it means a server can identify the type of post (
note
orphoto
) and potentially process it differently; perhaps using a different permalink format.It also means authors can work with the content and photo(s) data individually. For example, with the current data provided, it’s not possible to output the following HTML:
The text was updated successfully, but these errors were encountered: