{"action":"created","issue":{"url":"https://api.github.com/repos/idno/Known/issues/1991","repository_url":"https://api.github.com/repos/idno/Known","labels_url":"https://api.github.com/repos/idno/Known/issues/1991/labels{/name}","comments_url":"https://api.github.com/repos/idno/Known/issues/1991/comments","events_url":"https://api.github.com/repos/idno/Known/issues/1991/events","html_url":"https://github.com/idno/Known/issues/1991","id":294223963,"number":1991,"title":"Support multiple photo posts","user":{"login":"cleverdevil","id":212738,"avatar_url":"https://avatars1.githubusercontent.com/u/212738?v=4","gravatar_id":"","url":"https://api.github.com/users/cleverdevil","html_url":"https://github.com/cleverdevil","followers_url":"https://api.github.com/users/cleverdevil/followers","following_url":"https://api.github.com/users/cleverdevil/following{/other_user}","gists_url":"https://api.github.com/users/cleverdevil/gists{/gist_id}","starred_url":"https://api.github.com/users/cleverdevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleverdevil/subscriptions","organizations_url":"https://api.github.com/users/cleverdevil/orgs","repos_url":"https://api.github.com/users/cleverdevil/repos","events_url":"https://api.github.com/users/cleverdevil/events{/privacy}","received_events_url":"https://api.github.com/users/cleverdevil/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-04T19:41:22Z","updated_at":"2018-02-09T20:33:48Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Micro.blog's iOS and macOS clients support a nice feature where you can attach multiple photos to a post, and then create an entry with some prose and the images as well. According to @manton, he uses Micropub, with `h=entry`, and multiple `photo[]=` params passed, after using the Media Endpoint to first upload each photo.\r\n\r\nCurrently, Known rejects these posts, and I'm not entirely sure why. There are several ways I can think of to handle this:\r\n\r\n1. Create a new `Entity` called `Gallery` or `Photos`, which is specifically targeted to handling this use case, and then do a bunch of work to support it in the Micropub Endpoint and the frontend. This seems to fit the pattern of other problems solved in Known, but I don't particularly like this way.\r\n\r\n2. Work on the `Text` Entity's support for multiple attachments, and smartly render them, along with any provided content, then enhance the Micropub Endpoint to create these in the case that multiple photos are passed in.\r\n\r\nI would love to hear @mapkyca and @benwerd chime in when they have a chance :)"},"comment":{"url":"https://api.github.com/repos/idno/Known/issues/comments/364557504","html_url":"https://github.com/idno/Known/issues/1991#issuecomment-364557504","issue_url":"https://api.github.com/repos/idno/Known/issues/1991","id":364557504,"user":{"login":"cleverdevil","id":212738,"avatar_url":"https://avatars1.githubusercontent.com/u/212738?v=4","gravatar_id":"","url":"https://api.github.com/users/cleverdevil","html_url":"https://github.com/cleverdevil","followers_url":"https://api.github.com/users/cleverdevil/followers","following_url":"https://api.github.com/users/cleverdevil/following{/other_user}","gists_url":"https://api.github.com/users/cleverdevil/gists{/gist_id}","starred_url":"https://api.github.com/users/cleverdevil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cleverdevil/subscriptions","organizations_url":"https://api.github.com/users/cleverdevil/orgs","repos_url":"https://api.github.com/users/cleverdevil/repos","events_url":"https://api.github.com/users/cleverdevil/events{/privacy}","received_events_url":"https://api.github.com/users/cleverdevil/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T20:33:48Z","updated_at":"2018-02-09T20:33:48Z","author_association":"CONTRIBUTOR","body":"While I think a Gallery object would be nice, eventually, I am not convinced that its necessarily the best way to go here. Its my understanding that pretty much all Entities support attachments, so doing it in the near-term in a more cross-cutting way would enable any type of post created via Micropub that contains multiple attachments to elegantly display the images.\n\n(Originally published at: https://cleverdevil.io/2018/while-i-think-a-gallery-object-would)"}}
{"actor":{"display_login":"cleverdevil"}}