#dev 2017-04-29

2017-04-29 UTC
[kevinmarks], [eddie], KevinMarks, leg1, [tamaracks], tantek, [chrisaldrich], [colinwalker] and miklb joined the channel
#
loqi.me
edited /private_posts (+106) "[kevinmarks] added "https://marrus-sh.github.io/mastodon-info/everything-you-need-to-know-about-privacy-v1.3-020170427.html" to "See Also""
(view diff)
[jeremycherfas], [colinwalker], [kevinmarks] and leg joined the channel
#
schmarty
good morning, -dev!
#
schmarty
i just got my invite and registered at micro.blog. having trouble getting my personal site "verified".
#
schmarty
i've got the relme link to my micro.blog page on my homepage (https://martymcgui.re/ to https://micro.blog/schmarty), but it's not seeming to pick it up.
#
Loqi
Marty McGuire h
#
schmarty
not sure if it complicates things but i gave it my "RSS" feed through having granary convert my main posts h-feed into an atom feed.
#
schmarty
the web site verification steps (http://help.micro.blog/2017/web-site-verification/) seem to indicate that as long as I am pointing to my URL in my account settings and have the relme link back on that page it should pick it up on refreshing my account page. it doesn't seem to be, though.
[eddie] and [colinwalker] joined the channel
#
aaronpk
schmarty: that sounds about like how i have it set up
#
schmarty
aaronpk: thanks! i guess i will start over and triple-check everything if it hasn't started working in a few hours.
#
aaronpk
you could ask in the micro.blog slack too. there's a #bugs channel
KevinMarks joined the channel
#
aaronpk
GWG: how far back in PHP versions do you have to support for wordpress plugins? For this XRay library I don't want to have to support really old versions but I know you were thinking about using it
#
martymcgui.re
edited /html_regex (+12) "fix audio permalink"
(view diff)
#
GWG
I support or try to support 5.3 or above. WordPress supports to 5.2
#
GWG
I have had complaints from users using 5.3
#
GWG
And if you made Xray a library, I might use it in lieu of my own simplified version
#
GWG
Your work is fuller featured.
#
aaronpk
I'm working on the library right now. I'm not sure how far back it will work but I doubt it will support 5.3
#
aaronpk
I use a couple other libraries like HTML purifier and a twitter client, so it depends on those too
#
schmarty
apparently time heals the micro.blog config. my site is now verified.
#
GWG
aaronpk, we can set it to fall back in older versions
#
aaronpk
like fall back to a non-xray library?
#
GWG
aaronpk, yes
#
GWG
With an notice in the UI about it
tantek joined the channel
#
miklb
I saw a tweet yesterday that the % of WP sites using < 5.3 is very close to being at a point can be dropped.
#
GWG
miklb, that is why we tend to support 5.3 and above
#
GWG
5% are still on 5.2 though
[jeremycherfas] joined the channel
[colinwalker] and [eddie] joined the channel
#
[eddie]
`Endpoints Callback
#
[eddie]
IndieWebMeEndpoints(authorization_endpoint: Optional(https://aaronparecki.com/auth), token_endpoint: Optional(https://aaronparecki.com/auth/token), micropub: Optional(https://aaronparecki.com/micropub))`
#
[eddie]
Yes! Fetching endpoints is complete
#
Loqi
Aaron Parecki h
#
[eddie]
I don’t want to break the components down into too many frameworks. From you guys’ experience, should endpoint fetching code be part of an IndieAuth framework, or should it be its own framework that the IndieAuth framework uses?
#
[eddie]
In my mind, I think it would be part of IndieAuth, but if someone might need it separately, I’m happy to break it out.
#
aaronpk
endpoint fetching? is that like given a profile URL, find the micropub/auth/etc endpoints?
miklb joined the channel
#
aaronpk
if it could also be used to find other rel URLs, might make sense as its own library
#
aaronpk
e.g. a webmention endpoint
#
aaronpk
or websub, or other future things
#
[eddie]
Ahhhh gotcha! That sounds good
#
aaronpk
i have a separate function in XRay for this actually
#
aaronpk
it returns the merged list of rel values that it finds in HTTP headers and HTML tags
#
[eddie]
Nice, that makes sense. Would rel=“me” be included in that as well?
#
[eddie]
or just header rel tags?
#
aaronpk
it returns all rels
#
aaronpk
any element with a rel attribute, plus HTTP Link headers
#
aaronpk
it doesn't know what any of them mean, it's just a parser basically
#
[eddie]
:thumbsup: gotcha, I’ll match that then
#
aaronpk
i think that would be a useful library for sure
#
[eddie]
Awesome, I’ll break that out then ?
#
aaronpk
you've already seen this library I assume? https://github.com/indieweb/link-rel-parser-php
#
Loqi
[indieweb] link-rel-parser-php: Parse HTTP `Link` headers into a structured format
#
[eddie]
I actually missed that one. So that’ll be helpful to look at
#
aaronpk
there are some good test cases there
#
GWG
How is the xray work going?
#
[eddie]
Excellect
#
[eddie]
Excellent*, thanks for that
#
miklb
anyone know of a little library or something that could be used in the WP admin to parse tweet character counts?
#
aaronpk
GWG: slower than I was hoping!
#
aaronpk
Its tricky
#
aaronpk
miklb: cassis.js has a twitter char counter
#
GWG
aaronpk, I only ask because I am looking at enhancing the code used in Semantic Linkbacks, which is due for a revisi.
#
aaronpk
i got a good chunk done yesterday, hoping to finish today
#
aaronpk
if this is the only thing i accomplish today i will be happy
#
GWG
Either way, the existing functionality needs to be updated. It is some of the older code in the plugin and people are commenting it is classifying likes as mentions
#
GWG
I want to redo the properties to type mapping
KevinMarks_ and tantek joined the channel
#
miklb
aaronpk thanks, took a look, but couldn't make heads or tails of what I would need out of that file. I punted and just did a regular character count for my excerpts for now.
KevinMarks and [manton] joined the channel
#
aaronpk
miklb: heh sorry, I shoulda pointed you to something more specific: https://github.com/tantek/cassis/blob/master/cassis.js#L1579
#
aaronpk
making progress on XRay
KartikPrabhu, KevinMarks and [chrisaldrich] joined the channel
#
[chrisaldrich]
miklb: petermolnar once made this: https://wordpress.org/plugins/character-count-for-post-content-excerpt/ which should do what you're looking for.
#
Loqi
[Peter Molnar] This plugin hasn’t been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used wi...
#
[chrisaldrich]
Wow Loqi, you're dispensing WordPress advice now?
#
miklb
[chrisaldrich] yeah, I hacked something similar together for my own uses. Really just need a little regex or something to count URL as 23 chars, or whatever it is Twitter is using now
#
miklb
that notice is at the top of the page
[eddie], leg, [kevinmarks], KevinMarks_ and KevinMarks joined the channel
#
aaronpk
tests++
#
Loqi
tests has 2 karma in this channel (11 overall)
#
aaronpk
cannot imagine doing this refactor without these tests
#
miklb
might wind up using this https://github.com/twitter/twitter-text/tree/master/js and maybe write a little WP plugin. who knows.
KevinMarks, gRegorLove, evanwolf and [colinwalker] joined the channel
#
aaronpk
i think i'm done
#
aaronpk
okay... here we go
#
schmarty
aaronpk++ wow, nice updates on XRay!
#
Loqi
aaronpk has 49 karma in this channel (1303 overall)
#
aaronpk
can't wait to rip out a bunch of code from OwnYourGram and replace it with this library!
leg, gRegorLove, KevinMarks and [eddie] joined the channel
#
[eddie]
aaronpk: You have both HTTP Header Links and HTML Rel Links. Obviously, yours match. However, in a battle between the two, which should override the other? (Or do you just add them both to the array)
#
aaronpk
I believe webmention says which take priority
#
aaronpk
tho now I'm not sure what my library does
#
aaronpk
might be safer to add them all in order of the priority webmention says and let the consumer decide
#
[eddie]
If more than one of these is present, the first HTTP Link header takes precedence, followed by the first <link> element, and finally the first <a> element.
#
[eddie]
So yeah, I guess just put them all in there with [0]=HTTP Link, [1]=Link, etc.
#
[eddie]
Thanks
#
KevinMarks
Which is an interesting difference from lrrd
#
KartikPrabhu
hmm why is Link header the first priority? it seems harder to change while the HTML is more easily updated
#
[eddie]
Hmmm. Security versus Ease of Use? Link header is harder to change but probably also less likely to be accidentally or maliciously changed?
#
KartikPrabhu
maliciously?
#
KevinMarks
Also link headers can be returned by a HEAD request
#
KartikPrabhu
KevinMarks: I know the advantage of Link headers, but why are they first priority?
#
KartikPrabhu
if I update my webmention endpoint, it is much easier to change the HTML than try to find where my server is sending Link headers from
#
KevinMarks
If I post a comment on your part and you don't escape it right, I could add a link
#
KartikPrabhu
that would still be below the <head> <link>
#
KevinMarks
I think it would be hoisted to the head by html5 parsing
#
gregorlove.com
edited /User:Gregorlove.com (+17) "/* Interests */ fixed authorship parsing"
(view diff)
#
gregorlove.com
edited /User:Gregorlove.com (+18) "/* Interests */ completed"
(view diff)
#
gRegorLove
From the sender perspective, HEAD is easier than GET since it will return less data. My plugin stops there if it finds it in the HEAD request.
#
loqi.me
created /trusted_contact (+152) "prompted by gRegorLove and dfn added by gRegorLove"
(view diff)
[kevinmarks] joined the channel