#dev 2018-08-18

2018-08-18 UTC
#
GWG
snarfed: I just sent over a PR. Was wondering...is this going to annoy people?
#
snarfed
GWG: probably the wrong framing/mentality
#
GWG
I'm thinking this will make people more secure
#
GWG
But phrasing of warning notices is a question
#
snarfed
i don't actually know what you're talking about (yet)...but in general...
#
snarfed
eh language in warning text is medium/low priority. roughly right is good enough. "users don't read." :P
#
GWG
A nag notice if the site is not HTTPS
#
snarfed
i'm sure it's great!
#
GWG
I put in a way to disable it
#
GWG
It's not really a WordPress specific issue, which is why I brought it up in here
#
GWG
I'm wondering if annoying people about not running HTTPS is the right move for a Micropub endpoint
#
GWG
I suppose it is one step above disabling the plugin entirely if it isn't SSL
swordsmanz19 joined the channel
#
GWG
I'm wondering...does anyone only allow their Micropub endpoint to operate over SSL?
#
sknebel
I'd assume most people that don't have an HTTP version of their site don't
#
sknebel
since the typical pattern is redirecting all HTTP request
jmac joined the channel
#
sknebel
+ the endpoint is what I declare on my site: if I put an HTTPS url there, then that's *the endpoint*, even if it technically would be reachable over HTTP no conforming client would try that
#
GWG
But do clients all check?
#
GWG
sknebel, do you think checking is a good move?
mblaney joined the channel
#
sknebel
It's not really specific to micropub at that point. if you log in to the wordpress backend over HTTP that's just as insecure as micropub over HTTP
#
GWG
Good point, I suppose
#
eli_oat
Does anyone know of a good minimal micropub endpoint to use as a starting place, something sort of along these lines; https://gist.github.com/adactio/8168e6b78da7b16a4644
#
sknebel
so while I'd generally recommend HTTPS, and nowadays have little patience for providers not offering it, I'm not sure it fits for the plugin to loudly complain and it'd be a very low-priority thing for me to implement if it all
#
sknebel
eli_oat: preference in languages?
#
eli_oat
@sknebel no real pref. PHP is my jam, but I'd be down with pretty much anything. I'm just interested in collecting as many examples as I can
#
eli_oat
I mean...I'd love LISP, but that seems to be asking a lot :P
#
sknebel
there's dgolds nanopub: https://github.com/dg01d/nanopub (I think he's got a media endpoint too)
#
Loqi
[dg01d] nanopub: MicroPub support for Static Blog Engine
#
eli_oat
oooh, interesting. I've looked at that before, but haven't seen it in a while. It has grown a lot!
#
eli_oat
thanks
#
Loqi
[Marty McGuire] Micropub for a static Neocities website
#
eli_oat
thanks sknebel, these are great examples!
#
eli_oat
my own endpoint is based off of that gist I shared...and despite my site working 100% as I'd like at the moment, I've been toying with re-writing it from the ground up :P
#
eli_oat
and looking for examples of different micropub implementations
Dave4, eli_oat, FrozenFox6 and [grantcodes] joined the channel
#
[grantcodes]
Ok, eventually got a new version of the https://postrchild.com/ extension online. It works for WordPress micropub sites now!
#
GWG
Thanks
#
GWG
grantcodes++
#
Loqi
grantcodes has 18 karma in this channel over the last year (27 in all channels)
Menche11, renem, Guest15951, tantek, j12t, eli_oat, tantek__, jim6, aykut28, ululate, bast-anon, Napsterbater, leg and bladernr2 joined the channel
#
tantek.com
edited /programming_language (+114) "pagelogo"
(view diff)
meme1, tafthartharath, AimHere14, ketas6, KanerixWolfe3, abrotman29, vdamewood, trqx18, walle303, lbft27, thurin4, [kevinmarks], Captain_Beezay, kepler_mach27, justanotheruser1, Vorpal11, Guest22027 and justyns joined the channel
#
@pstuifzand
I have added the `-verbose` flag to `ek`. This makes it possible to see the HTTP requests that are sent to the Microsub server and the responses that are returned. It can be a tool when creating your own Microsub server of client. https://p83.nl/p/880
(twitter.com/_/status/1030759224954040322)
mdk19, exezin3, jgmac1106_, Jguy, [metbril], [kevinmarks], [jgmac1106], casdr18 and jgmac1106 joined the channel
#
jgmac1106
grrrrr…I tried seriusly simple podcasting plugin and I am still getting errors about my show art not displaying: http://jgregorymcverry.com/feed/podcast/2toponder
#
jgmac1106
nvm I have to add a featured img to each episode and it works
AlwaysHigh21, Melody\Concerto2, [kevinmarks], TehNut8, jgmac1106, iasai, [eddie], diz26, RaptorJesus26, renem, [jgmac1106], [chrisaldrich] and n0nada6 joined the channel
#
NinjaTrappeur
Hi indieweb! I'm setting up some microformats tags in order to implement webmentions on lobsters. Here's my first take: https://public.alternativebit.fr/Loading%20a%20Cabal%20module%20in%20the%20GHC%20API%20%7C%20Example%20News.html
#
NinjaTrappeur
I runned it against pin13's validator, it seems to be at least "parseable"
benny16 joined the channel
#
NinjaTrappeur
but I could use any kind of feedback, especially about the URLs. Not sure about myself about the use of relative ones.
#
Zegnat
This should be the same parser as pin13, actually :)
#
Zegnat
Just a nice in-chat shortcut to go straight to the parser
#
Zegnat
I am a little confused about the h-cite having 2 url values
#
Zegnat
looks at HTML
#
NinjaTrappeur
Nice! I'm amazed by the whole indie-web chat based setup.
#
Zegnat
So looking at that, it seems like the person making the post gets listed as the author on the h-cite rather than on the h-entry. That seems wrong to me.
#
Zegnat
The author property on the h-cite (if supplied) should be the author of the outside page. The author property on the h-entry should be the person creating the post on lobstr.
#
Zegnat
(I hope that is the kind of feedback you are looking for.)
#
NinjaTrappeur
I see. Yes, thank you, this is exactly what I am looking for!
#
Zegnat
I think everything is contained in that div.details? So I would move thhe .u-repost-of and .h-cite onto the nested span.link element.
#
Zegnat
And the div.byline can probably be the .h-card. That way you can get the avatar marked up as u-photo for the author
#
Zegnat
(That is .p-author.h-card)
#
Zegnat
Though... Hmm. Byline also contains the post timestamp. So that might make it impossible to mark that up :(
#
NinjaTrappeur
Yup, that's the problem I had. Besides, the picture is 32x32px, it's maybe a bit small... I though using the link as an h-card was maybe easier.
#
NinjaTrappeur
you're right about the div.details
#
Zegnat
Yeah, using the link to the user is fine as an h-card
#
Zegnat
I was just looking for a way to get the photo in there
#
NinjaTrappeur
forgot the author...
kunwon119 joined the channel
#
NinjaTrappeur
Alright, thanks for you time Zegnat
#
Zegnat
h-cite looks good now. Though the author seems to show up as a URL property on the h-entry.
#
Zegnat
Nice job NinjaTrappeur :) And do feel free to ping this channel again if you need more feedback from people!
[stefp] joined the channel
#
aaronpk
just discovered fastcgi_finish_request()
#
aaronpk
how have i never known about this before
#
aaronpk
this seems ideal for asynchronous handling of webmentions at relatively low volumes
#
GWG
Where is this?
jgmac1106 joined the channel
#
aaronpk
just tested by writing to a log file with some sleep(5) thrown in and it works great
#
GWG
Are you going to document this?
#
aaronpk
there's basically nothing to it
#
GWG
I will have to research it, as I can't conceptualize it
#
GWG
Probably need to think it
#
Zegnat
So it sends everything needed for the server (nginx/apache/etc) to response, this means the server can finish the entire browser-server back and forth, but it doesn’t stop PHP running yet and you can continue to run code.
iasai joined the channel
#
Zegnat
So an HTTP request (e.g. a webmention) can start a PHP script, and the server response no longer depends on the PHP script being done.
#
Zegnat
I’ve never used it either though
#
sknebel
of course still keeps the worker process busy during that time
letty24 joined the channel
#
aaronpk
yeah, it's not a true backgrounding workflow, but better than keeping the browser connection open
leg, jgmac1106, mblaney and Iota8 joined the channel
#
GWG
I need to add auto-location retrieval for my posts. I had to go in afterward and do this, because my Micropub client doesn't yet support location. https://david.shanske.com/2018/08/18/2044/
#
Loqi
[David Shanske] I need someone to do this when I am at home. https://david.shanske.com/wp-content/uploads/2018/08/1534613277868-e1534613490331.jpg
#
GWG
I think aaronpk does that.
Sabotender13 joined the channel
#
GWG
But aaronpk does everything I've thought of doing usually.
[pfefferle], jgmac1106, diz4 and WizJin joined the channel
#
@rubygems
webmention-endpoint (2.0.0): Discover a URL’s Webmention endpoint. https://rubygems.org/gems/webmention-endpoint
(twitter.com/_/status/1030886216156241921)
#
GWG
aaronpk: Expiring tokens...your thoughts?
#
aaronpk
to what end?
#
GWG
I don't like giving things permission to access my site indefinitely
#
aaronpk
It's up to you for sure
#
aaronpk
most Micropub apps probably won't handle it very well if the token expires tho, like Quill will show you the 401 error and then you have to know to log out and back in again.
change joined the channel
#
GWG
aaronpk: I was thinking of just putting in an admin ui button to expire tokens that haven't been used in a year.
#
Zegnat
If someone is taking action to do it that sounds like revocation
#
Zegnat
Which is already part of the spec
#
aaronpk
Seems reasonable
#
GWG
No one supports refresh tokens that I know of
#
GWG
I support external revokation
#
aaronpk
The revocation spec is for the client to tell the server the token isn't needed anymore
#
GWG
I support that
#
Zegnat
aaronpk, I realise that. I just mean that it seems fine to have the native UI revoke tokens, since the concept of revocation is known by anyone who reads the spec
#
Zegnat
Possibly more so than automatically expiring tokens
#
Zegnat
It is true that from an app’s point of view, there isn’t really any difference though.
#
Zegnat
Just a token that suddenly stops working
jgmac1106 joined the channel
#
GWG
I'm just thinking as I was just enhancing the manage token UI
#
aaronpk
GWG: if you're interested in improving that UI, you might consider making it look like github's https://github.com/settings/applications
#
GWG
As of the last PR, I'm only missing a bulk revokation optionn and an app icon
#
GWG
And the only reason I haven't done client information discovery is because I didn't build in an mf2 parser
}ls{, stevoo0 and CrunchyChewie20 joined the channel
#
aaronpk
ah right
#
GWG
I just think it is a big include for icons.
#
GWG
But I probably should
#
aaronpk
could the mf2 parser be brought in by a different plugin that might make more use of it, and then the indieauth plugin could use it if it's there?
#
GWG
aaronpk: Post Kinds and Semantic Linkbacks already do
#
aaronpk
cool so you could just check for it and use if it's there?
#
GWG
Correct
#
Zegnat
Hmm, aaronpk, webmention.rocks does not have a test case with <BASE> element? I just enabled coverage reporting on my endpoint discovery code and it told me that part of my code isn’t covered by any of the tests.
#
Zegnat
(I wonder what coverage reporting would say of the mf2 repo.)
#
GWG
Plugins are supposed to be self contained, but I suppose this is a decent compromise.
#
aaronpk
these plugins all depend on each other already anyway
#
aaronpk
but i think this is okay because it's essentially just an enhancement, not required for the core functionality
#
GWG
Not really
#
GWG
You can live a happy life without Post Kinds
#
GWG
I wouldn't, but I built it
#
aaronpk
Zegnat: oops that sounds like a good one to add to webmention.rocks! file an issue?
#
Zegnat
Yeah, on my way
#
GWG
If you don't want Webmentions, you don't bother with Semantic Linkbacks...
#
Zegnat
Just checking all the already existing issues, so I don’t accidentally duplicate
#
GWG
So, the people who just want IndieAuth won't get it.
ForexTrader, TripFandango and [kevinmarks] joined the channel
#
GWG
aaronpk: The specification for IndieAuth says the class is h-app. Quill has h-x-app.
#
aaronpk
ooh i should update quill
#
GWG
Just noticed
#
aaronpk
Zegnat: does this mean your code is running tests against webmention.rocks?
#
Zegnat
Like jgarber’s original Ruby lib, actually. It was all inspired on his work
#
GWG
aaronpk: Own Your Swarm does not have an h-app at all.
#
GWG
Don't see one on Own Your Gram either
#
aaronpk
i should fix that
#
GWG
aaronpk: You started this line of inquiry
#
aaronpk
ownyourswarm needs some better home page copy :)
#
Loqi
Indigenous for iOS
#
GWG
By the way, Micropublish has h-x-app, so I'd better tell him
#
[kevinmarks]
Ah, that finish request thing is good to know. In python sending the response effectively does that.
[pfefferle] joined the channel
#
Zegnat
... there was actually a bug in my base element finding.
#
Zegnat
tests++
#
Loqi
tests has 8 karma in this channel over the last year (13 in all channels)
Razesdark, spirit_pact23, aOssed28, A_D6 and plonk14 joined the channel
#
Zegnat
Another test that was (obivously) missing from webmention.rocks: a page that does not contain a webmention endpoint. Haha
#
Zegnat
pushes update that takes the php-webmention-endpoint-discovery to 100% test coverage
#
@_joshdick
@aaronpk Nice meeting you at #devconf! Looks like my Webmentions integration with http://micro.blog ‘s endpoint still has kinks to be worked out, so sending this to you on Twitter instead: https://joshdick.net/microblog/2018/08/18_17.25.08_77108.html
(twitter.com/_/status/1030930410136657921)
renem and KartikPrabhu joined the channel
Platonides24, KartikPrabhu, gpolitis, snarfed and By joined the channel
#
Zegnat
For those who were following along, or wanted to see how I am doing webmention endpoint discovery in PHP, I just marked the current state up for release: https://github.com/Zegnat/php-webmention-endpoint-discovery/releases/tag/v1.0
conno and [kevinmarks] joined the channel
#
snarfed
Zegnat: you don't do any caching in that, right?
luke-jr6 and jamesl joined the channel
#
GWG
snarfed, how close are we to release?
#
GWG
I need a...Is it time yet website.
[pfefferle] joined the channel
#
snarfed
GWG: you overthink this :P
#
GWG
I was kidding
#
snarfed
lol ok
#
snarfed
let's call it now! no more changes, just a bunch of testing, have beta testers confirm, and cut the release
#
GWG
I would like that.
Cajs26 joined the channel
#
GWG
I have been testing. Found the Omnibear problem, will likely find a few more
salios, singpolyma and jesse25 joined the channel