WTF is this thing?
This is a micropub client for posting photo galleries / albums to your indieweb website
Nerdy Stuff
For this to work on your site you need to support a few things:
- A micropub endpoint that supports json posts
- A media endpoint
- Collection support
- Visibility=unlisted support
Each photo is sent individually:
{ "type": ["h-entry"], "properties": { "category": ["gallery-photo"], "visibility": ["unlisted"], "name": ["Photo title"], "photo": ["https://yoursite.com/media/photo.jpg"], } }
Then the gallery request is sent with the collection of photo urls as children:
{ "type": ["h-entry"], "properties": { "category": ["gallery"], }, "children": ["https://yoursite.com/photopost1", "https://yoursite.com/photopost2"] }