-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
q=source on Media Endpoint #14
Comments
I plan to support this in Micro.blog as soon as there's a recommendation for what the response looks like. I'd prefer to have as few required properties as possible… Maybe just file URL and date, and optionally width/height for images if available. |
Not yet, I documented these off the wiki.. published makes more sense as that is the proper mf property |
Thanks @dshanske. Here's what my response looks like in Micro.blog right now, from {
"items": [
{
"url": "https://www.manton.org/uploads/2020/058fa92305.png",
"width": 1200,
"height": 816,
"published": "2020-05-27T14:14:09+00:00"
},
{
"url": "https://www.manton.org/uploads/2020/7a57980ca2.jpg",
"width": 1800,
"height": 1800,
"published": "2020-05-20T02:22:09+00:00"
}
]
} It also supports |
Going to look into implementing the response bit at https://git.jacky.wtf/indieweb/koype/issues/214 (Originally published at: https://v2.jacky.wtf/post/46bcf84e-7968-409b-b1a9-2c5f756331ff) |
My media endpoint now supports
The files are ordered newest first. It will only ever return a maximum of 10, but a client can request a limit using |
Quill now queries the media endpoint to find the most recent uploaded file using |
Micro.blog has been updated with support for |
This query is supported by Indiekit. It currently returns this object for a file: {
"basename": "3uv8j",
"ext": "jpg",
"filename": "3uv8j.jpg",
"originalname": "photo.jpg",
"content-type": "image/jpeg",
"published": "2022-11-07T17:13:16.792Z",
"post-type": "photo",
"url": "https://getindiekit.github.io/sandbox/media/photos/2022/11/07/3uv8j.jpg"
} This is a direct dump of properties from the database, but in retrospect, think I’ll remove some of those unneeded file name properties and simplify it to this: {
"content-type": "image/jpeg",
"published": "2022-11-07T17:13:16.792Z",
"post-type": "photo",
"url": "https://getindiekit.github.io/sandbox/media/photos/2022/11/07/3uv8j.jpg"
} |
For videos in Micro.blog, we're adding a
Still haven't added post type or dimensions because everyone seems to be handling that a little differently. |
Resuming this discussion from last year… Has anyone experimented with adding fields to the media I'm tempted to do something like:
It could be more complicated than that including the actual dimensions, but I really want to keep this simple. |
Related #4
This is an implementation of the same feature proposed for the micropub endpoint, currently referenced on the Media Endpoint wiki page. https://indieweb.org/micropub_media_endpoint#Query_media_by_URL
The return would be an items property with the responses from #13
The text was updated successfully, but these errors were encountered: