#dev 2017-10-15

2017-10-15 UTC
John__, tbbrown, snarfed, EmreSoku_, [kevinmarks], renem, [keithjgrant], leg, tantek, KartikPrabhu, jeremycherfas, arush, jeremych_ and davidmead joined the channel
#
dgold
anyone about for some micropub.rocks questions?
#
GWG
dgold, battening down the hatches?
#
dgold
indeed
#
dgold
getting some code time up before our power goes
#
GWG
Good luck
#
GWG
I arrive in the morning
#
GWG
This is the second Irish hurricane I've been there for
#
dgold
you coming into shannon?!?
#
dgold
you could end up _anywhere_ - magical mystery adventure holiday
#
dgold
aHa - sorted out my problem
#
dgold
i was getting an error on validation of '?q=source' requests sometimes, this was because I was double-array-encoding
#
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
#
@meyerweb
Got a Google Sheets question too long for 140 Twitter, and IndieAuth․com won’t talk to meyerweb․com so I can’t post it to StackOverflow. ?
(twitter.com/_/status/919631730977529856)
snarfed joined the channel
#
@aaronpk
@meyerweb I just updated the user agent that http://indieauth.com sends so it should work for you now!
(twitter.com/_/status/919634675693273088)
#
Loqi
[Aaron Parecki] @meyerweb Strange, your Wordpress is returning a 403 error when the user agent is set to Chrome 43!
#
aaronpk
is this some sort of "feature" that is supposed to prevent bots from crawling the page?
#
dgold
aaronpk: hello there - just wondering: how does one implement 'undelete' for micropub?
#
aaronpk
it's up to you! micropub is just the API for clients to tell the server what to do
#
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")
#
dgold
i've gotten deletion working, but just using php's 'unlink($file)'
#
aaronpk
ah you're storing in files?
#
dgold
aye - that's fine for database-stores, but i'm flatfiling
#
aaronpk
so you could move that file to a "trash" folder for example
#
aaronpk
like how operating systems work
#
dgold
if it goes to a trash folder, should I then provide a 200 with the new location?
#
aaronpk
not sure what you mean
#
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"
#
aaronpk
no the undelete request would be sent with the previous public URL
snarfed joined the channel
#
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...
#
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.
#
aaronpk
right so if you don't restore the post to the original location, then you'd respond with 201 and the new location
#
dgold
laughs to self at quoting the spec at the guy who, you know, wrote the damn spec :-)
#
aaronpk
but hopefully you could restore it to the original location
#
dgold
no, i'll restore to the original location
#
dgold
its not that difficult, now that I've spent the day wading around in php
snarfed joined the channel
#
dgold
and done.
#
dgold
nanopub passing all the 500s now
#
dgold
and 600s
#
dgold
i'll try working on the 400s next
#
dgold
GWG: there are flights being cancelled into Ireland at the moment
snarfed joined the channel
#
@keithjgrant
@meyerweb You can IndieAuth into Stack Overflow now? ?
(twitter.com/_/status/919643805892186113)
#
@aaronpk
@keithjgrant http://indieauth.com is one of the only remaining OpenID providers, and Stack Overflow still accepts OpenID logins
(twitter.com/_/status/919644014852194304)
snarfed joined the channel
#
GWG
dgold, not mine
#
@meyerweb
@aaronpk Thanks! And the UA problem reminds me I recently I upped security in WordFence, which may have “too-old UAs get blocked” rules somewhere.
(twitter.com/_/status/919650333411901440)
#
GWG
So, OYS worked, but OYG is still pending
#
aaronpk
OYG is on a polling schedule so it might take some time
#
GWG
I just got it set.
#
GWG
Not bad
#
GWG
Needs tweaking on the WordPress side though
#
GWG
How does it look to you all?
#
GWG
Last two posts
#
Loqi
[David Shanske] Checked into Gate 11.
#
aaronpk
the date is wrong on the instagram one
#
aaronpk
looks like it got everything else tho!
#
GWG
I think it is a Micropub glitch.
John__ joined the channel
#
GWG
I refreshed
EmreSokullu joined the channel
#
dgold
GWG: what's your flight code?
#
GWG
Switched to direct message
#
GWG
But EI104
#
@depone
Semantic Linkbacks von @pfefferle unterstützt jetzt auch Listen für Likes, Reposts und Mentions: https://depone.net/2017/09/15/webmention-reaktionen-sichtbar-machen/
(twitter.com/_/status/919659960392470529)
tantek, snarfed, [kevinmarks], eli_oat and EmreSokullu joined the channel