#Loqi[Aaron Parecki] @meyerweb Strange, your Wordpress is returning a 403 error when the user agent is set to Chrome 43!
#aaronpkis this some sort of "feature" that is supposed to prevent bots from crawling the page?
#dgoldaaronpk: hello there - just wondering: how does one implement 'undelete' for micropub?
#aaronpkit's up to you! micropub is just the API for clients to tell the server what to do
#aaronpkprobably 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")
#dgoldi've gotten deletion working, but just using php's 'unlink($file)'
#dgoldif 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"
#aaronpkno the undelete request would be sent with the previous public URL
#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...
#dgoldok, 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.
#aaronpkright so if you don't restore the post to the original location, then you'd respond with 201 and the new location
#dgoldlaughs to self at quoting the spec at the guy who, you know, wrote the damn spec :-)
#aaronpkbut hopefully you could restore it to the original location