#dev 2018-04-20

2018-04-20 UTC
eli_oat, snarfed, Mandrake, jjuran, [jgmac1106], [kevinmarks], chrisaldrich and renem joined the channel
#
@JmacDotOrg
Opinionated Perl nerds: Is “Web::Mention” a good name for an implementation of a tech called “Webmention”, or should I avoid cuteness and go for the banal brutality of “Web::Webmention” or whatever. (“Webmention” is neither my invention nor my name for it.)
(twitter.com/_/status/987147558152794112)
#
skippy
I finally finished up my personal micropub server implementation: https://github.com/skpy/micropub
#
Loqi
[skpy] micropub: a minimal PHP micropub endpoint, with media support
[chrisaldrich] joined the channel
#
@JmacDotOrg
↩️ Leaning towards WWW::Webmention, on theory that a charmingly affected stutter is preferable to a full-bore Max Headroom effect
(twitter.com/_/status/987152846599741440)
jjuran joined the channel
#
@genehack
↩️ @JmacDotOrg Well, as long as you put “webmention” in the synopsis I don’t think you’ll hurt discoverability that much…
(twitter.com/_/status/987162802438602752)
eli_oat, wagle, KartikPrabhu, renem, cweiske and tantek joined the channel
#
tantek
that's some good bikeshedding right there ^^^
tantek joined the channel
#
Zegnat
!tell oodani looks like a definitive problem with Indiewebify, you can’t ever have multiple representative cards. Parsing specifies to always take the first one that matches the requirements. http://microformats.org/wiki/representative-h-card-parsing
#
Loqi
Ok, I'll tell them that when I see them next
#
oodani
yeah i noticed that! it /does/ show you the first one it found, but it shouldn't really be complaining that there are multiple since. there aren't
#
Zegnat
Sounds like you got it all figured out then :)
Mandrake and swentel joined the channel
#
petermolnar
can a h-review be nested in a h-entry? would it make sense?
#
Zegnat
Anything can be nested. But what is the usecase?
#
Zegnat
aaronpk’s reviews are not wrapped in entries, as most data can just put on the h-review: https://aaronparecki.com/reviews
#
Loqi
[Aaron Parecki] Elgato Cam Link
#
petermolnar
that's why I'm asking; I have a long entry about a smartphone and fixes to it, but I want to add a rating to it
#
petermolnar
so the thought is to nest the h-review in the h-entry
#
petermolnar
but I'm uncertain if things would parse it
[jgmac1106] joined the channel
#
Zegnat
Hmm. Not sure. Who are you envisioning as the consumer though? h-feed readers will still be displaying the contents as long as it is part of the h-entry’s e-content.
#
Zegnat
And if you want Google to pick up on it, it doesn’t really matter where on the page the review markup is, I believe.
eli_oat, [jgmac1106] and [matthilt] joined the channel
#
swentel
aaronpk, do you have an example somewhere of a webmention with an rsvp in the payload ?
#
Zegnat
What is rsvp?
#
Loqi
An RSVP is a reply to an event post that says whether the sender is or is not attending, might attend, or is just interested in the event https://indieweb.org/rsvp
#
Zegnat
Probably take one of the example posts from there, swentel? https://indieweb.org/rsvp#IndieWeb_Examples
#
cweiske
petermolnar, I use hreview (v1) because google supports it: http://cweiske.de/tagebuch/patriot-tab-16gb.htm
#
swentel
well, I've looked there, which is great for microformatting, but wanted to see where it's nested in the payload hook that gets send then in a webmention
#
swentel
but I guess I should just send one :)
#
swentel
and look at the incoming request
#
Zegnat
A payload hook? Are we talking about a specific webmention service?
#
Zegnat
(Webmentions do not have a payload other than URLs.)
singpolyma joined the channel
#
swentel
oh sorry
#
swentel
so when using webmention.io
#
swentel
you can configure the endpoint
#
swentel
and that sends the data to my site
#
swentel
so to the webhook
#
Zegnat
Aah, gotcha
#
swentel
but I guess rsvp will be nested underneath "post"
#
swentel
with yes/maybe/no/interested as a value
#
Zegnat
Maybe what you get on the hook will look the same, but I have never used the webhook
#
swentel
that's what I needed :)
#
swentel
thanks!
#
swentel
ok it's the jf2 format
#
swentel
but oh well
#
swentel
that's fine
#
Zegnat
You can probably change the API endpoint URL for other formats? Maybe :P
#
Zegnat
At least it is an example web page that gets its RSVP data from webmention.io.
#
swentel
just remove the .jf2 extension :)
#
Zegnat
tantek uses a service by ben_thatmustbeme to generate it into icons on the fly, see: http://tantek.com/2018/080/e1/homebrew-website-club-sf
#
swentel
oh, that is cool indeed
#
swentel
another issue for the drupal plugin heh
snarfed, leg, [ciudadanob] and kaushalmodi joined the channel
#
kaushalmodi
cweiske++ Very cool! Didn't know about hreviews
#
kaushalmodi
So Google translates this: <p class="summary"> <abbr class="rating"> <span class="value-title" title="2"/> Don't buy it. </abbr> </p> to 2/5 stars?
#
Loqi
cweiske has 36 karma in this channel (140 overall)
#
Zegnat
What is review?
#
Loqi
A review is an evaluation of a product or service, usually involving a written description, but can also be limited to a numerical scale https://indieweb.org/review
#
Zegnat
Here is the full story about Google and the markup they consume, kaushalmodi: https://aaronparecki.com/2016/12/17/8/owning-my-reviews
#
Loqi
[Aaron Parecki] Why Microformats? Owning My Reviews
#
Zegnat
Web Share Target API is getting closer! Now on the Canary version of Chrome on Android. https://paul.kinlan.me/web-share-target-api/
#
kaushalmodi
Zegnat: Thanks!
#
aaronpk
swentel: sorry I need to add more docs to webmention.io. But the Web hooks use the jf2 format, so if you run an rsvp post through XRay that's what you'll get from webmention.io
KartikPrabhu joined the channel
#
@sandhawke
↩️ So... how do you feel about the WG *also* standardizing stuff that competes with AS and AP, including WebMention, Micropub, and WebSub? Once the group gave up on convergence, some folks moving forward with AS/AP wasn't really an obstacle.
(twitter.com/_/status/987353633657425920)
KartikPrabhu joined the channel
#
aaronpk
Wow what a weird parsing bug on some of my last mentions from ownyourswarm
#
aaronpk
XRay gets a weird author name from it, and I don't understand why
#
aaronpk
its only on some of them, not all of them
#
aaronpk
OYS hasn't changed recently, I did change something unrelated in XRay yesterday, so I'm confused
#
sknebel
did you maybe not deploy whatever you had changed before?
#
aaronpk
I did an update in XRay yesterday to handle Instagram URLs, but it was limited to Instagram parsing.
#
aaronpk
I don't understand how the photo url could appear in the h-card name when the mf2 result looks correct
#
aaronpk
Ohh there's no p-name class in the OYS html. That's weird
#
aaronpk
So somehow I'm using a version of the mf2 parser that includes the img src in the implied name
#
KartikPrabhu
aaronpk: implied name is supposed to include src from the image while getting the text content
#
aaronpk
Yea I'm not sure how I messed up the html for so long, or why it only now is a problem
#
Zegnat
Hmm, latest PHP version of the parser? Has been a while between releases right? Maybe something changed there.
#
skippy
aaronpk: is there a reason that Quill has a "title" in the editor UI, but submits that value as "name" in the micropub?
#
aaronpk
Speaking of which, we need to do a new release. I forgot we're on an -alpha
#
skippy
ah, just answered my own question.
#
skippy
http://microformats.org/wiki/h-entry has no "title"; just "name". I see.
#
Loqi
[Tantek Çelik] h-entry is a simple, open format for episodic or datestamped content on the web. h-entry is often used with content intended to be syndicated, e.g. blog posts. h-entry is one of several open microformat standards suitable for embedding data in HTML. ...
#
aaronpk
"name" is the h-entry vocab for it , maybe I should rename it in the UI
#
KartikPrabhu
maybe something like "post name" would be clearer
#
sknebel
"name" seems less clear
#
skippy
As a relative newbie, I'm used to my content have "titles", not "names". the Quill UI makes sense to me; but the post body was surprising until I read the spec.
#
aaronpk
Oh maybe it's been a while since I've gotten a comment from swarm! That seems entirely possible that it's been longer ago than the mf2 parser update that changed the implied name parsing
#
skippy
oh, and TIL that there is no MF2 "note". Notes are just entries without titles. Hrm.
#
KartikPrabhu
skippy: yes, those are intentional decisions to prevent blowing up of many vocabularies which do the same thing
#
KartikPrabhu
what is post type discovery
#
Loqi
Post Type Discovery specifies an algorithm for determining the type of a post by what properties it has and potentially what value(s) they have, which helps avoid the need for explicit post types that are being abandoned by modern post creation UIs https://indieweb.org/post-type-discovery
#
KartikPrabhu
skippy: see ^
snarfed joined the channel
#
skippy
i see.
#
Zegnat
aaronpk, I think the php-mf2 alpha is only whitespace testing? Not sure if anything is in the alpha that is neccessary for release.
snarfed and tantek joined the channel
#
skippy
the MP spec defines "in-reply-to" but does not specifically address "repost".
#
skippy
Are MP clients scraping the source site for posting locally, or do folks do that manually and include a "repost of" MP attribute?
#
KartikPrabhu
micropub clients should not be doing any scraping
singpolyma joined the channel
#
skippy
what are workflow examples of reposts? I assume many will use Bridgy to backfeed; but i'm more interested in POSSE.
#
Loqi
It looks like we don't have a page for "workflow examples of reposts" yet. Would you like to create it? (Or just say "workflow examples of reposts is ____", a sentence describing the term)
#
Zegnat
MP spec should also not be defining vocabulary ...
#
KartikPrabhu
what is bridgy publish?
#
Loqi
Bridgy is an open source project and proxy that implements backfeed and POSSE as a service https://indieweb.org/Bridgy_Publish
#
KartikPrabhu
skippy: ^ bridgy does POSSE too
#
Zegnat
Skippy, any MP client may submit any valid microformats JSON representation. So if someone is reposting, they should submit that as a property on the entry they are sending to their MP endpoint
#
GWG
Lots of good conversation today
#
GWG
Any Micropub client supporting q=category?
#
martymcgui.re
edited /next-hwc (+0) "next actual HWC"
(view diff)
barpthewire and AngeloGladding joined the channel
#
@MisterKapowski
Managed to get things working 😀 mainly by switching to the IndieAuth PHP client, instead of rolling my own code with Guzzle. Then I figured out why it wasn’t working, but didn’t see the point in switching back…
(twitter.com/_/status/987386881225773056)
snarfed and AngeloGladding joined the channel
#
sknebel
aaronpk: so this is a terrible hack, but for microsub demo-purposes you could maybe make an aperture instance and block all POST-requests to it? then it'd be effectively read-only
#
aaronpk
oh like so others can make microsub api requests to it?
#
aaronpk
not a terrible idea. i could make it not require any authenication also.
#
sknebel
or make some automatic auth, since the clients probably expect being able to auth
#
sknebel
forgot about that bit
#
aaronpk
yeah could do the commentpara.de thing that lets anyone authenticate at the server
#
aaronpk
or could actually just use commentpara.de as the user account haha
#
sknebel
would need to add an microsub link
#
aaronpk
ah right
#
sknebel
although hacking selfauth to not ask for a password would be very easy
#
sknebel
the "cut off POST requests" was just a random thought, since you had mentioned looking for ways to easily let people try microsub
#
skippy
dgold: thanks for publishing nanopub! It helped me a lot to build my own micropub endpoint! https://github.com/skpy/micropub
#
Loqi
[skpy] micropub: a minimal PHP micropub endpoint, with media support
#
skippy
it's a work in progress, but coming together quite nicely for what I desire.
#
dgold
hey! excellent!
#
dgold
that's really what I want nanopub to be!
#
dgold
this is the way I got it to do what I wanted, feel free to use it or to take inspiration from it.
#
dgold
sort of thing
#
dgold
oooh, I like what you did with the syndication endpoints
#
Zegnat
Oh man, I think the URL resolving code in php-mf2 might not be compliant. But I really do not feel like writing URL resolving code :/
#
dgold
in the ?q=config
sebsel joined the channel
#
aaronpk
Zegnat: i wrote that code! I spent a lot of time on it too, feel free to file issues
#
sknebel
Zegnat: in what way?
#
aaronpk
there are some really tricky examples in the tests
#
Zegnat
So I was just doing some minor rewriting to the u- parsing to move resolution down the chain (per mf parsing spec issue #10). The move made me fail one test, which isn’t too shabby.
#
Zegnat
But I now get the URL value "http://example.com/Awesome example website". And from my reading of the WHATWG URL spec, spaces in the path must be percent encoded: https://url.spec.whatwg.org/#path-percent-encode-set
#
Zegnat
And just look at the resolving code, it doesn’t ever seem to do percent encoding?
#
Zegnat
s/look/looking/
#
Zegnat
is just going to accept spaces as spaces in his URL for first commit
snarfed and cweiske joined the channel
#
Zegnat
Going to leave the URL issue alone for now. Is tricky, as we do not want to be double-encoding. Filed a PR for the resolve-last
iasai joined the channel
#
www.boffosocko.com
edited /microcast (+115) "microcast discovery on micro.blog"
(view diff)
iasai, tantek and dougbeal|imac joined the channel
#
tantek.com
edited /unlisted (+380) "shorten dfn, indieweb examples stub, silo examples with FB hide from feed"
(view diff)
#
snarfed
tantek: i know you don't see github notifs, so just fyi, i fixed the html escaping in github bridgy publish
#
tantek.com
edited /this-week-in-the-indieweb (+98) "/* Ideas */ check site home page module ideas too"
(view diff)
#
tantek
snarfed++ awesome!
#
Loqi
snarfed has 56 karma in this channel (376 overall)
#
tantek
I do check github notifications manually once in a while
#
eddiehinkle.com
edited /microcast (+181) "Update 30+ and Author’s Note microcasts"
(view diff)
#
tantek
snarfed, have you thought about how to backfeed stuff like "added the publish label", and "closed this in link-to-pull-request n hours ago" ?
#
snarfed
tantek: heh no i have not
#
tantek
"added the publish label" could be sent by Bridgy backfeed as a /tag-reply
#
snarfed
one key point is that right now realistically i can only backfeed things that show up in your notifications
#
tantek
similarly "removed the publish label" as an /untag reply
#
snarfed
and i suspect label changes don't
#
tantek
hmm in notifications webview I just see lists of issues without saying *what* changed in the
#
tantek
them*
#
snarfed
oh that's fine, i can pull details from the API
#
snarfed
it's just that notifs is the only scalable way i have to find leads on things to backfeed in the first place
#
snarfed
thought i wrote this up briefly somewhere, but haven't found it yet
#
snarfed
regardless, feel free to file issues for anything you want, i can annotate them with whether they're currently possible
#
tantek
I'll capture them in wiki brainstorming first, when I'm ready to implement, I'll file issues
#
tantek.com
edited /GitHub (+339) "/* Backfeed */ more backfeed possibilities, note Bridgy handles a bunch already"
(view diff)
#
tantek.com
created /untag-of (+19) "r"
(view diff)
#
snarfed.org
edited /GitHub (+29) "/* Backfeed */ bridgy backfeeds reactions"
(view diff)
KartikPrabhu joined the channel
#
snarfed
lol https://www.pcmoto.net is currently trying to bridgy publish every single one of its posts
#
snarfed
despite the fact that it's not actually signed up for bridgy 😂
iasai_, KartikPrabhu, maingo, [miklb], [asuh] and [chrisaldrich] joined the channel
#
tantek.com
edited /SmugMug (+39) "Flickr acquisition relevant, add to dfn"
(view diff)
eli_oat joined the channel
#
tantek.com
edited /SmugMug (+44) "since 2002!"
(view diff)
#
tantek.com
edited /Flickr (-5) "founded 2004"
(view diff)
#
tantek.com
edited /this-week-in-the-indieweb (+416) "/* Ideas */ cluster a bit, summarize ideas, expand with some details"
(view diff)
leg joined the channel
#
peterstuifzand.nl
edited /Microsub (+112) "/* Servers */"
(view diff)
chrisaldrich joined the channel
[miklb], snarfed and eli_oat joined the channel