#dev 2018-11-11

2018-11-11 UTC
strugee joined the channel
#
kisik21
any stable parsers for h-entries that are usable in production? aaronpk, I've heard you have one
#
aaronpk
do you mean a microformats parser? there are parsers in a bunch of languages
#
kisik21
umm... I mean microformats -> json via web service
#
kisik21
API-like and curlable
#
aaronpk
there are some listed on https://microformats.io
#
kisik21
wanna show reply-contexts without JS, can consume JSON or CSV
#
aaronpk
if you mean something that is more aware of vocabulary, and deals with finding author info and such, then you can try https://xray.p3k.app
#
kisik21
xray++
#
Loqi
xray has 1 karma over the last year
#
kisik21
aaronpk ++
#
Loqi
aaronpk has 98 karma in this channel over the last year (307 in all channels)
#
kisik21
thanks
#
[eddie]
Well this isn’t good... the Share Sheet just isn’t showing up when I tap it for Indigenous 🤔
#
[eddie]
Anyone else happen to have Indigenous for iOS installed and notice the Share Sheet won’t activate from various apps (like Safari)
#
aaronpk
it's working for me still
#
[eddie]
Hmmm interesting so it’s not a internet issue
#
[eddie]
It’s weird because my app opens and works
#
[eddie]
I guess I’ll just reinstall it (because it’s a dev build)
#
gRegorLove
fixed my h-feed, aaronpk
renem joined the channel
#
Loqi
does a happy dance!
#
GWG
gRegorLove: I'll follow aaronpk's yay
#
GWG
Too many variants
#
GWG
No one has explained to me why people don't like h-feed
#
gRegorLove
I haven't heard people not liking h-feed?
#
aaronpk
welp gotta fix my flight maps... first flight across the date line and my site drew it the wrong way https://aaronparecki.com/2019/03/12/1/
#
Loqi
[Aaron Parecki] Portland to Boston, Boston to Tokyo https://aaronparecki.com/2019/03/12/1/map.png
#
GWG
I really envy that feature
#
GWG
I couldn't even get a GPS lock on my last flight
#
aaronpk
that one is just a stylistic line. my actual flight traces don't look very nice
#
aaronpk
I don't often get a GPS lock unless i'm at a window seat
#
GWG
I tried going to the galley
#
GWG
I meant, the whole itinerary feature.
#
GWG
I'll get there
#
aaronpk
This is still about finding the author of a post within a feed tho right?
#
aaronpk
Not about finding the author of a feed?
#
aaronpk
I think "feed authorship" isn't the right term for that
#
aaronpk
I think your step 2 is not quite what I do. I was trying to do more like: if there are 2+ h-* items, one of which is not an h-card, and if exactly one of them is an h-card, then the h-card is the author of the rest of them
#
gRegorLove
No, it's finding the author of the feed
#
gRegorLove
Aha, I wasn't sure of that looking at the code
#
aaronpk
I haven't cared about finding the author of a feed yet
#
aaronpk
only about finding the author of items in a feed
#
aaronpk
different problem, likely requiring a different solution
#
gRegorLove
I'm confused then
#
gRegorLove
author of items in a feed is /authorship#How_to_determine
#
aaronpk
Right and if you look at Adactio's feeds you end up running through all those steps and not finding an author
#
aaronpk
So there are some missing steps when looking at items within a feed. I think that was written primarily in the context of permalink pages.
#
gRegorLove
That sounds like a publishing error. His permalinks don't have author properties either
#
aaronpk
That was my first thought but then I realized there is enough information in his feeds to determine the author
#
aaronpk
It's working now too! I finally see his picture on all his posts in Monocle
#
gRegorLove
So my h-feed author thing was a separate issue. I think that's what threw me and had me focusing on feed authorship.
#
aaronpk
Your intent was to describe the author of the feed right?
#
mblaney
aaronpk I'm glad that the new authorship algorithm fixes the author issue for adactio.com, makes me want to add it too.
#
mblaney
just a bit hesitant though, adactio has over 40 h-cards on his home page, so you're relying on ordering to give you the author? makes it a little bit precarious.
#
gRegorLove
No, at the time I set up that homepage h-card my intent was just to do the u-author=/ thing on my posts. I didn't think about the fact my latest post is wrapped in h-feed on the homepage as well.
[kevinmarks] joined the channel
#
[kevinmarks]
Hm, a lot of my permalink pages don't have authorship.
[jgmac1106] and eli_oat joined the channel
#
aaronpk
mblaney: if you look at the tree view it's obvious which one is the right h-card. The trick is to use a microformats parser and not just use css selectors to find h-cards
[jgmac1106] and [eddie] joined the channel
#
aaronpk
Ohh I just looked at his home page again... i didn't realize all the h-cards in his bedroll are also top level objects
#
sknebel
Bedroll? :P
[jgmac1106] joined the channel
#
GWG
Why can't I find a podcast with a jsonfeed? It shouldn't be that hard.
#
aaronpk
does any podcast software support jsonfeed right now?
#
GWG
Clearly it isn't catching on.
#
GWG
aaronpk: Yes
#
GWG
Nope
#
GWG
Look at the json
#
GWG
No attachments
#
GWG
According to the specification, enclosures in RSS map to attachments in JSONFeed
#
GWG
But no one is doing it.
#
aaronpk
if anyone were going to be doing it I would expect micro monday
#
GWG
NPR claims they do it, but don't link to it.
#
GWG
I suppose, if I cannot find a good example to test against in 5 minutes, I should not worry too much
#
GWG
Surprised [eddie] 's JSONFeed doesn't do attachments
#
aaronpk
I guess I should add support for that to xray too
#
GWG
I just added it to Parse This, my x-ray like library
[kevinmarks] and [eddie] joined the channel
#
[eddie]
GWG, right now I built our JSONFeed to just focus on being perfect for Micro.blog, I do plan on revisiting all the potential properties of it and making sure it supports everything it can
#
[eddie]
My* JSON Feed not our* haha
jjuran and deathrow1 joined the channel
#
@rubygems
webmention-endpoint (2.0.1): Discover a URL’s Webmention endpoint. https://rubygems.org/gems/webmention-endpoint
(twitter.com/_/status/1061684612458561536)
[jgmac1106] and eli_oat joined the channel
#
@rubygems
authorization-endpoint (0.1.2): Discover a URL’s authorization endpoint for use with Micropub and IndieAuth clients. https://rubygems.org/gems/authorization-endpoint
(twitter.com/_/status/1061694355126280192)
#
@rubygems
authorization-endpoint (0.1.3): Discover a URL’s authorization endpoint for use with Micropub and IndieAuth clients. https://rubygems.org/gems/authorization-endpoint
(twitter.com/_/status/1061697788982034434)
#
@rubygems
token-endpoint (0.1.2): Discover a URL’s token endpoint for use with Micropub and IndieAuth clients. https://rubygems.org/gems/token-endpoint
(twitter.com/_/status/1061701228932018181)
#
Loqi
[arnabwahid] #1296 Remove Microformat Classes `.hentry`
#
Zegnat
That PR is different from what the title suggested to me: it doesn’t remove the hentry class from the output HTML, but stops them from attaching CSS to it.
#
aaronpk
Oh. That's a good step but not what I thought as well
#
GWG
That's why I said it took too long
#
Zegnat
TIL: actual hentry class isn’t part of the theme at all, but inserted by a WP core function `post_class()`
#
Zegnat
So I guess _s can’t actually remove that
#
aaronpk
at least now there is one fewer thing relying on .hentry in wordpress
#
@IaninSheffield
↩️ Have now written a lengthier response, which I hope notified you through the webmention ... if I posted it correctly! https://cpdin140.wordpress.com/2018/11/11/pd-and-parkruns/
(twitter.com/_/status/1061715680419028993)
#
gRegorLove
Is post_class() hookable? Might be possible to remove .hentry that way
#
gRegorLove
aaronpk, XRay doesn't appear to follow step 7 of authorship. Is that a known limitation?
#
aaronpk
it should
#
GWG
It is hook able
#
aaronpk
only on post permalinks though, not feed pages
#
gRegorLove
I'm trying it on xray.p3k.io with https://gregorlove.com/h-entry.html
#
Loqi
Title
#
aaronpk
there's no microformats on the h-card page so it fails
#
gRegorLove
thanks :)
#
GWG
Re xray. How does x-ray decide how a page with a feed and h-card should be returned?
#
aaronpk
depends on what you mean by "with a feed"
#
aaronpk
it does some tricks to figure out whether it thinks the page is a feed or a post permalink
#
aaronpk
but also it has a mode where you can tell it you're expecting a feed
#
GWG
The mode is what I need to.implen
#
GWG
implement
#
sknebel
from what I remember it ignores h-cards as long as it can (which is why jgmac1106's about page always gets a random comment from it as Loqi's preview)
#
GWG
I keep enhancing my parser
chrisaldrich and [tantek] joined the channel
#
mblaney
aaronpk maybe we can change step 8 of authorship discovery then? "if the author has not yet been found, it will now be obvious." :-D