2017-10-15 UTC
John__, tbbrown, snarfed, EmreSoku_, [kevinmarks], renem, [keithjgrant], leg, tantek, KartikPrabhu, jeremycherfas, arush, jeremych_ and davidmead joined the channel
# 15:13 dgold anyone about for some micropub.rocks questions?
# 15:16 GWG dgold, battening down the hatches?
# 15:17 dgold getting some code time up before our power goes
# 15:19 GWG This is the second Irish hurricane I've been there for
# 15:21 dgold you could end up _anywhere_ - magical mystery adventure holiday
# 15:23 dgold i was getting an error on validation of '?q=source' requests sometimes, this was because I was double-array-encoding
# 15:23 dgold changed to it to an if (is_array($categories)) and now it works
ben_thatmustbeme, jeremycherfas, snarfed, sebsel, [keithjgrant] and [miklb] joined the channel
snarfed joined the channel
# 18:43 Loqi [Aaron Parecki] @meyerweb Strange, your Wordpress is returning a 403 error when the user agent is set to Chrome 43!
# 18:44 aaronpk is this some sort of "feature" that is supposed to prevent bots from crawling the page?
# 18:45 dgold aaronpk: hello there - just wondering: how does one implement 'undelete' for micropub?
# 18:45 aaronpk it's up to you! micropub is just the API for clients to tell the server what to do
# 18:46 aaronpk probably easiest is to not actually delete records, just mark them as deleted, so that "undelete" is just flipping that bit back. (usually called "soft delete")
# 18:46 dgold i've gotten deletion working, but just using php's 'unlink($file)'
# 18:47 dgold aye - that's fine for database-stores, but i'm flatfiling
# 18:47 aaronpk so you could move that file to a "trash" folder for example
# 18:47 dgold if it goes to a trash folder, should I then provide a 200 with the new location?
# 18:49 dgold if my server takes a file out of mainline filestore, and puts it into trash, should the server tell the client: "Ok, I've 'deleted' that, if you want to 'undelete' it, this is the filename"
# 18:49 aaronpk no the undelete request would be sent with the previous public URL
snarfed joined the channel
# 18:52 Loqi [Aaron Parecki] Example delete and undelete flow when storing posts as flat files:
• Create a post on disk stored at e.g. `/web/2017/10/15/1/post.txt` which has a public URL of `http://example.com/2017/10/15/1/`
• When the client deletes the post, the server...
# 18:52 dgold ok, reading the spec: If the undelete operation caused the URL of the post to change, the server must respond with HTTP 201 and include the new URL in the HTTP Location header.
# 18:52 aaronpk right so if you don't restore the post to the original location, then you'd respond with 201 and the new location
# 18:53 dgold laughs to self at quoting the spec at the guy who, you know, wrote the damn spec :-)
# 18:53 aaronpk but hopefully you could restore it to the original location
# 18:53 dgold no, i'll restore to the original location
# 18:54 dgold its not that difficult, now that I've spent the day wading around in php
snarfed joined the channel
# 19:16 dgold GWG: there are flights being cancelled into Ireland at the moment
snarfed joined the channel
snarfed joined the channel
# 19:46 GWG So, OYS worked, but OYG is still pending
# 19:47 aaronpk OYG is on a polling schedule so it might take some time
# 19:50 GWG Needs tweaking on the WordPress side though
# 19:54 Loqi [David Shanske] Checked into Gate 11.
John__ joined the channel
EmreSokullu joined the channel
tantek, snarfed, [kevinmarks], eli_oat and EmreSokullu joined the channel