2019-09-29 UTC
KartikPrabhu, NeroprojektDisco, vendan, jgmac1106 and dhanesh95 joined the channel
# 06:26 GWG I just finished fixing UTC offsets in my location code, so I'm going to bed
# 06:28 GWG That addresses that one attendee with a problem at IWC Austin 2017
[frank], [aaronpk] and [schmarty] joined the channel
# 06:54 Loqi GWG has 27 karma in this channel over the last year (145 in all channels)
# 06:55 dansup hecc timezones GWG++
# 06:55 Loqi GWG has 28 karma in this channel over the last year (146 in all channels)
dhanesh95_, [Rose], [tonz], dhanesh95 and [tantek] joined the channel
# 08:41 aaronpk oh, one-time use tokens in URLs are a different story
# 08:46 aaronpk the "Risk of Exposure" section talks about it quite well
# 08:47 aaronpk also lol "If you are considering using capability URLs, you should consider other options..."
jgmac1106 and [jgmac1106] joined the channel
# 09:22 [schmarty] aaronpk described it as "awk, but for json", which feels accurate if inscrutable 😄
[Rose], [jgmac1106]1 and [Lewis_Cowles] joined the channel
# 10:39 [Lewis_Cowles] there is also yq for yaml if the need ever arises
# 10:40 [Lewis_Cowles] beware json with comments, it's a thing I'm seeing more and more
AceFaceDiscord[m, mrcatmann, jgmac1106, [jgmac1106], [tantek], [frank], [grantcodes] and [schmarty] joined the channel
# 13:38 [schmarty] Oooh yq is actually a thing I needed! I was converting yaml to JSON so I could use jq, then converting back! 😱
jacki and [mapkyca] joined the channel
# 14:08 [frank] [aaronpk] How do you redirect in Quill to the new published post? I can't find the permalink anywhere in the response from the micropub call.
[aaronpk] joined the channel
jonny2 joined the channel
# 15:29 GWG I see Quill supports visibility as a query.. will have to add it now
# 15:30 GWG I should do some Quill PR stuff one of these days
jgmac1106, [jgmac1106], jjuran, [Marten], [grantcodes] and [frank] joined the channel
# 17:41 [frank] [Rose] a question on iOS Shortcuts. When I do a post to my blog (with micropub) I get a response from my WordPress site with the result and headers. How do I pick up this information in Shortcuts? Especially the header to get the Location which has the permalink to my new post.
[Rose] joined the channel
# 17:41 [Rose] I presume it's returning JSON? JSON is a dictionary
# 17:42 [frank] It's in the header, not the response itself. Which is JSON
# 17:42 [Rose] I have a series of Shortcuts I've been modifying this summer, I should get around to posting them.
# 17:42 [Rose] AFAIK you can't get the headers of the response. I'd be happy to be wrong about that though!
# 17:43 [frank] Let me put my iPhone from Dutch to English to show the steps I have now. And the error message that goes along. BRB. I hope.
[tantek] joined the channel
# 17:44 [Rose] Assuming iOS 13 you can also go to Settings > Shortcuts and enable untrusted Shortcuts and send me a link (making sure any keys are not present first though)
# 17:45 [frank] It went pretty easy. Here's what I have now. After posting I want to get the headers of the URL. That's when I get an error.
[aaronpk] and [schmarty] joined the channel
# 18:08 [Rose] Getting the headers sends another request I beliece
# 18:09 [Rose] As you have to give it a URL, it can't read them from a query already executed
# 18:13 [Rose] Yup, tapping the icon on Get Headers shows the following docs:
# 18:13 [Rose] Retrieves the HTTP headers of the URL passed as input using a HEAD request.
# 18:17 sknebel for personal use, you could extend your micropub endpoint to return e.g. a json including the path as well. I think that's valid to do with 201/202 responses
# 18:20 Zegnat Yeah, totally valid. I feel like some people had already started doing that?
# 18:29 GWG [Rose]: I couldn't even remember if I added that.
# 18:29 GWG I am going to add the query Quill supports as of today in my next pass
# 18:31 GWG [Rose]: By the way, any asks for WordPress? I am starting a run of bugfixes and easy enhancements
# 18:32 [Rose] Being serious, no I think I'm all good - thanks for asking!
# 18:36 [frank] With my checks in Postman to do these micropub posts, the response doesn't give back the full permalink of the post.
# 18:37 [frank] [sknebel] I have no idea how and where to extend an endpoint....
# 18:38 sknebel since other say it should be there, micropub plugin up to date?
# 18:40 GWG [frank]: Open an issue on the repo?
# 18:42 sknebel [Rose]: you sure about the MP endpoint? or just the media endpoint?
# 18:42 sknebel in the media endpoint I see code for it, in the micropub one it's not obvious
[tonz] joined the channel
# 18:46 GWG But if someone opens an issue, I will see about doing it
# 18:46 [Rose] And I construct it for MicroPub somehow I thought, but I have a cold - my brain is 90% offline :P
# 18:48 Loqi [RosemaryOrchard] #206 Return URL to post in JSON
# 18:59 Loqi Rose has 14 karma in this channel over the last year (52 in all channels)
jgmac1106, KartikPrabhu and [sebsel] joined the channel
# 20:15 [Rose] !tell GWG: same as Media Endpoint? Sorry, I’m not logged into GitHub here.
# 20:15 Loqi Ok, I'll tell them that when I see them next
Gr1mR33p joined the channel
[aaronpk] joined the channel
# 21:04 [aaronpk] We should standardize the JSON response with the URL as a micropub extension
# 21:07 Zegnat Can I make the unpopular suggestion that, if that gets done, conneg is added so we can still give browsers a different response? 😇
# 21:10 Loqi conneg has -2 karma in this channel over the last year (-3 in all channels)
# 21:12 [aaronpk] Why do browsers need a different response? Won't they redirect when the Location header is returned?
krychu joined the channel
# 21:14 Zegnat But I am not sure if that is actual HTTP standards behaviour or unspeced browser behaviour
# 21:19 jgmac1106 jaimetanna I see it as if something deserves its own license then it probably should be it’s own h* level. A self contained piece of content that could or shouldn’t be moved around based on license.
# 21:35 sebsel re the Micropub returning the URL: I have all my endpoints return a HTML link. Shortcuts can parse that too. But I guess JSON makes sense too here, but the redirect is designed to be user facing
# 21:36 sebsel has to be an <a href> for Shortcuts to work though, iirc. Just putting plain text wont work
[jgmac1106] joined the channel
# 21:43 jgmac1106 I have used h-item for products on shopping pages, maybe that could work when you need a piece of content to have a different license??
# 21:49 sebsel so it is ‘get contents of URL’ and then ‘get URLs’
jgmac1106 and KartikPrabhu joined the channel