#dev 2018-03-28

2018-03-28 UTC
snarfed, tantek, eli_oat, [tantek], KartikPrabhu, j12t_, j12t__, [unoabraham], renem, rookie and mblaney joined the channel
#
mblaney
tantek I wrote up my indie-config privacy concerns last year: https://unicyclic.com/mal/2017-08-07-Universal_Sign-In_Button
#
Loqi
[Malcolm Blaney] Universal Sign-In Button https://unicyclic.com/mal/public/usb.png
#
mblaney
also keen for swat0 challenge at IWS :-)
KartikPrabhu and kaushalmodi joined the channel
#
kaushalmodi
kevinmarks: I just wrote my first u-in-reply-to post: https://scripter.co/replies/fragmentions/
#
Loqi
[Kaushal Modi] Fragmentions
#
kaushalmodi
I sent the webmention using https://telegraph.p3k.io/, but I believe something is wrong in the microformats markup?
#
kaushalmodi
.. because the author/sender shows up as Unknown on the target link. Can someone help?
#
KartikPrabhu
kaushalmodi: to be clear fragmentions.js is by Jonathan Neal, the idea of fragmentions was by Kevin Marks
tantek joined the channel
#
kaushalmodi
Oops, will fix that
#
kartikprabhu.com
edited /fragmention (+20) "/* See Also */"
(view diff)
#
kaushalmodi
kartikprabhu: I just tried fragmentioner to, but did not work for me (also I don't know Javascript, but looked as console in inspector and there were no errors too)
#
kaushalmodi
But the moment I replace fragmentioner.js with fragmentions.js in the script tag, links like foo.bar/#abc def will start working again
#
KartikPrabhu
fragmentioner does not work without fragmentions
#
kaushalmodi
(I should read the README better)
#
kaushalmodi
so have both scripts in the script tags
#
KartikPrabhu
fragmentions.js does the "scroll to the link" bit. fragmentioner.js only gives you a "popup link"
#
kaushalmodi
Can you add that bit to your project README?
#
KartikPrabhu
I have been meaning to make a unified script since a bunch of stuff is reused but haven't done it yet
#
mblaney
hi kaushalmodi your authorship discovery should be ok, but you should add permalinks to the h-entry's in your h-feed with u-url.
#
KartikPrabhu
also it is possible your targets won't follow the entire authorship algorithm
#
kaushalmodi
mblaney: But what does h-feed have to do with the post sharing
#
kaushalmodi
h-feed comes into picture only for the homepage, post list pages, etc.
#
kaushalmodi
On that post link, I do have u-url holding that's page permalink, in h-entry
#
kaushalmodi
KartikPrabhu: So what's the best way to set authorship?
#
KartikPrabhu
kaushalmodi: you can never guarantee that everyone does all the parsing correctly
#
kaushalmodi
I set the h-card on *all* pages with u-url site to by site homepage, and then set the u-author in each h-entry to point to the same homepage url too
#
KartikPrabhu
yeah that sounds right
#
Loqi
[Kartik Prabhu] Javascript UI to get the fragmention (http://indiewebcamp.com/fragmention) link of selected text. https://github.com/kartikprabhu/fragmentioner #indieweb
#
KartikPrabhu
kaushalmodi: yeah I don't do full authorship parsing either
#
kaushalmodi
Also am I doing the replies the right way?
#
kaushalmodi
From the wiki, I read that I can have multiple u-in-reply-to in a post
#
KartikPrabhu
yeah you can
#
kaushalmodi
but looks like that webmention spammed the whole post, including the other reply
#
KartikPrabhu
it isn't spam
#
KartikPrabhu
you replied to my post and I put all its contents in my post
#
kaushalmodi
Right, so my question was.. If there was a better style of markup so that your site would parse only the stuff I mark related to your post url..
#
KartikPrabhu
no. the u-reply-to is for the whole h-entry so it will always pick the whole thing
#
kaushalmodi
Hmm OK, thinking about it, both replies were obviously related
#
kaushalmodi
So the recipient wouldn't be offended
#
kaushalmodi
For completelty unrelated replies to 2 different posts, I would of course write separate reply posts
#
kaushalmodi
Thanks for the dialog
cweiske and tomasparks joined the channel
#
mblaney
kaushalmodi h-feed doesn't have anything to do with post sharing, like I said your authorship discovery looks fine to me.
#
mblaney
the only reason I mentioned your h-feed is that I tried subscribing to it in my reader and it didn't display any posts because there were no u-url's on the h-entry's.
#
mblaney
I'm also seeing some strange implied p-name for scripter.co but I'm not sure what is causing that.
[kaushal_modi] joined the channel
#
[kaushal_modi]
I'll add that tomorrow. May be http://microformats.org/wiki/h-feed should be updated with that info?
#
Loqi
h-feed
#
[kaushal_modi]
About the p-name, what does it look like? If you search for h-feed further up this channel, you will see that there's an issue parsing p-name correctly in my h-feed as in minify my HTML + use html5 tags like article.
#
[kaushal_modi]
s/as in/as I/
#
cweiske
[kaushal_modi], could you share a screenshot of an email webmention.io sent you?
#
Loqi
cweiske: KartikPrabhu left you a message 14 hours, 31 minutes ago: thanks for the heads up. fixed now. somehow introduced a bug in mf2py debug info!
#
[kaushal_modi]
cweiske: well webmention.io did not send me email directly
#
[kaushal_modi]
I use its webhook feature to trigger email from Zapier
#
[kaushal_modi]
In Zapier, I then template the email as I like using the JSON fields of the object received
#
cweiske
could you describe that in https://indieweb.org/webmention.io ?
#
cweiske
or on your blog, and add the link to the wiki
#
[kaushal_modi]
I'll do that later this week for sure. I have a backlog of posts on indiewebifying my site :)
#
mblaney
oh it's the lack of closing paragraph tag that was also mentioned earlier.
#
mblaney
kaushal_modi++ for indiewebifying his site :-)
#
Loqi
kaushal_modi has 1 karma
AngeloGladding joined the channel
#
Zegnat
mblaney, which microformats parser do you use? Some of them handle kaushalmodi’s HTML
KevinMarks and [kevinmarks] joined the channel
#
[kevinmarks]
Looks like https://webmention.herokuapp.com only uses the h-card within the h-entry, which is why it's only showing the link with unknown user.
#
Loqi
A WebMention Endpoint
#
mblaney
Zegnat I use php-mf2, though I should probably update the version I'm using.
#
Zegnat
There is an update slated for php-mf2. But yeah, PHP’s HTML parser does not handle the markup with or without update
#
Zegnat
I am testing with an alternative parser right now
jeremycherfas joined the channel
#
Zegnat
“Tests: 279, Assertions: 572, Errors: 8, Failures: 31.” - well, that’s not good.
#
cweiske
php-mf2?
#
Zegnat
Yeah, I dropped in masterminds/html5 as an alternative HTML parser and that happened.
#
Zegnat
But I think I solved it. I just wasn’t paying enough attention. Thankfully, tests save me again.
#
cweiske
did you succeed integrating the generic mf2 tests?
#
Zegnat
Those run on the central-tests branch, yes, they just don’t all pass. Often because of those tests being broken.
#
Zegnat
I’d probably just have to sacrifice a Saturday to actual fix the tests. Or something.
j4y_funabashi joined the channel
#
Zegnat
https://github.com/indieweb/php-mf2/pull/169 - rebasing in a bit, but works and will parse the unclosed P element correctly.
#
Loqi
[Zegnat] #169 Add support and test for alternative HTML5 parser
#
j4y_funabashi
morning all
#
pstuifzand
I have a question about verifying a token on an external endpoint
#
pstuifzand
How long is the verification of the token valid?
#
pstuifzand
An external service (monocle) has a token for my token endpoint, and I need to check if the token it has is still valid
#
pstuifzand
Do I need to check this for every request or can I cache the response some time?
#
sknebel
that's up to you, are you willing to accept that someone having the token has access for some caching time even if they shouldn't?
#
sknebel
I guess caching for short times makes sense for something like a microsub endpoint which might get many requests and would slow down each of them with waiting for a reply from an external endpoint otherwise
#
sknebel
if it's my own token endpoint, I'd build it in a way that I can verify directly though and not bother with caching
#
pstuifzand
it's external, so I implemented the GET token-endpoint request
#
pstuifzand
I don't log out often, from the services so perhaps 10 minutes is a good time
#
pstuifzand
it would improve the speed of the microsub requests quite a bit
#
j4y_funabashi
I am planning to move from http://tokens.indieauth.com to an internal version at some point as it adds around 300ms for each micropub request
#
j4y_funabashi
but its not super high on my list
#
pstuifzand
yes, for my micropub it's internal now, but the microsub server is a different program/server, so checking the request has to be external at the moment
#
pstuifzand
I build it so that I get a push notification with a code and I can enter it on the website
#
pstuifzand
It's very easy, but perhaps not secure enough for some people
#
Zegnat
Wait, verification of a token? What do you mean? If you are writing an app, you just keep using the token you know until the endpoint you are communicating with gives an authentication error, at which point you know the token isn’t good (anymore)
#
sknebel
Zegnat: he's clearly talking about the endpoint side
#
Zegnat
Oooh. When e.g. a micropub server needs to check the token it was sent! Wow, my brain completely fritzed on that.
#
pstuifzand
I'm trying to implement (almost?) all parts: I have written an authorization_endpoint, token_endpoint, micropub endpoint, and microsub endpoint, websub hub and an android app the sends micropub.
#
pstuifzand
And at the moment I'm improving the microsub backend.
#
pstuifzand
It now caches the verified token from the microsub reader
mblaney left the channel
#
cweiske
petermolnar, chromium just offered me to translate your /category/journal from hungarian to english
#
cweiske
maybe add a lang="en" attribute to <html>?
#
petermolnar
well.. there is hungarian content in there
#
petermolnar
and I thought I have per entry lang, but I need to double check
#
cweiske
you can add lang="" to all tags
#
cweiske
e.g. divs
#
petermolnar
I've added lang to the <article>s, please check it now
#
cweiske
looks good. unfortunately chromium doesn't care and translates everything, e.g. 'kthxbye #2' to "return to #2"
#
cweiske
chromium bug then
#
petermolnar
mixed language pages are very hard, so I don't really blame it
[kevinmarks] joined the channel
#
[kevinmarks]
what's a good map showing API that isn't google?
#
cweiske
apart from OSM?
#
[kevinmarks]
I thought I needed a wrapper around OSM to display things?
#
cweiske
leaflet is the standard IIRC
#
[kevinmarks]
looks promising
#
Zegnat
The submenu's on that page aren't usable on mobile, cweiske? At least on Chrome for Android it navigated away to the main page before I have time to click one in the submenu.
#
cweiske
yes, that's an issue
#
aaronpk
leaflet++
#
Loqi
leaflet has 1 karma in this channel (3 overall)
[kevinmarks] joined the channel
#
[kevinmarks]
leaflet is very nice - been playing with the layers at http://leaflet-extras.github.io/leaflet-providers/preview/
#
[kevinmarks]
what do you use for Atlas, aaronpk?
#
cweiske
if I had to guess I'd say he uses some esri tiles
#
aaronpk
atlas doesn't do JS maps
#
aaronpk
it uses esri tiles by default, but my site uses one of the mapbox ones which requires an account and an api key
#
[kevinmarks]
the Stamen ones are nice
#
[kevinmarks]
I found an Ordnance Survey leaflet bridge, but their maps weren't really meant for this - they are print maps http://rob-murray.github.io/os-leaflet/
#
[kevinmarks]
they do have a lot of detail though
#
@scottmallinson
So I’ve set up a little http://micro.blog over at [https://scottmallinson.com] as a means of POSSE-ing to Twitter and Facebook. If I’ve set up Webmentions correctly, comments and likes should backfeed to my website
(twitter.com/_/status/979000790588194816)
snarfed and jeremycherfas joined the channel
#
loqi.me
created /Ncdu (+72) "prompted by jeremycherfas and dfn added by jeremycherfas"
(view diff)
#
aaronparecki.com
edited /ncdu (+331) "ncdu"
(view diff)
#
schmarty
aaronpk: oops i broke telegraph?
#
aaronpk
uhoh what'd you do
#
schmarty
locked up while finding endpoints for the URLs in https://martymcgui.re/2018/03/27/204841/ and is now giving 504 gateway timeouts. 😬
#
Loqi
[Marty McGuire] HWC Baltimore 2018-03-27 Wrap-Up
#
schmarty
"locked up" as in a the spinners for a few of the URLs became buttons but the others just spun. console showed 504s returning for the requests to find endpoints.
#
aaronpk
i'm guessing it's timing out trying to fetch those sites
#
schmarty
seeing the same errors trying to load the telegraph dashboard, for instance.
#
aaronpk
oh like the whole thing locks up? uhoh
#
schmarty
haha, sorry, should have said that earlier.
#
Loqi
hehe
[stefp], [ryan339], cweiske, [kaushal_modi], snarfed, tantek, KartikPrabhu and wagle joined the channel
#
GWG
snarfed, maybe I should work on Micropub #106 to improve error handling to try and figure out the post status problem?
[cleverdevil] joined the channel
#
snarfed
GWG: i would start by just trying to repro this bug locally, with the code as is
#
GWG
snarfed, I have tried. I can't. Even with a clean install.
#
snarfed
on exactly the same wordpress version, settings, and micropub client?
#
GWG
The only thing I didn't check was PHP version. But Travis and Circle do that, don't they?
#
snarfed
they don't check that it's the same version as the person who hit the bug :P
#
GWG
They should check all major versions
#
snarfed
we can definitely make them
#
snarfed
but try reproing locally first, with same php version and wp config
#
snarfed
reproing a bug locally is always the best way to debug it, but when that's not possible, adding lots of logging is next. #106 sounds nice, but don't expect it to help repro or log this bug specifically.
#
GWG
Actually, that repo doesn't. The other indieweb stuff checks 5.3
#
GWG
I was hoping it might surface more data
#
GWG
But I am going to ask him to try some ideas from a branch then
[stefp] joined the channel
#
snarfed
thank you!
barpthewire joined the channel
#
sknebel
repeating PSA for Drupal users: https://www.drupal.org/psa-2018-001
AngeloGladding and [eddie] joined the channel
#
[eddie]
Hey [cleverdevil], [grib] just set up Known and is having issues with the channels showing up in Indigenous, but his Micropub is working. I’m was wondering if the fixes you made on your instance around Micropub tokens and scopes was PR’d into master?
swentel and [cleverdevil] joined the channel
#
[cleverdevil]
It was pulled into master.
swentel and [kevinmarks] joined the channel
#
www.boffosocko.com
edited /micro.blog (+172) "Interesting community resources"
(view diff)
[cleverdevil], swentel_ and [kim_landwehr] joined the channel
#
Loqi
[[kim_landwehr]] Trying unsuccessfully to add micro sub end point to my blog. I am using the https://indieweb.org/Microsub-spec#Authentication_and_Authorization as the roadmap. My question is what do I replace https://aaronpk.example with. Do I replace it with my web...
#
aaronpk
i'm not sure I know which "aaronpk.example" you're referring to
#
aaronpk
but you need a few things: the indieauth links and the microsub link
#
aaronpk
like this example but rel=microsub instead of micropub https://www.w3.org/TR/micropub/#endpoint-discovery
#
ben_thatmustbeme
finally getting back to developing my site again
#
ben_thatmustbeme
super busy year, and its not looking like it will be any less busy, but have my laptop set up with a local dev setup again at least
#
snarfed
ben_thatmustbeme++
#
Loqi
ben_thatmustbeme has 18 karma in this channel (263 overall)
#
ben_thatmustbeme
been just writing seeders thus far so at least I have some data that looks like useful stuff first
[grib] joined the channel
#
[grib]
Your PR says it doesn't work in all cases, have you any info on what that may be?
[cleverdevil] joined the channel
#
[cleverdevil]
So one thing to try is making sure that the “single user” toggle is enabled in your settings.
#
[cleverdevil]
Known has a weird multi-user thing where it sends your “me” around with “/profile/<user>” added.
#
[cleverdevil]
Toggling that setting helps ensure you can use your “naked” domain as the “me” consistently.
KartikPrabhu and snarfed joined the channel
#
eli_oat[m]
Is there a way to block a specific domain from sending me webmentions? I’m using webmention.io to receive mentions. I ask because I’ve received over a hundred from a specific domain. I don’t think it is malicious, just a miss configuration. I reached out to the sender, but haven’t heard back.
#
aaronpk
hm, i've started implementing stuff liek that in webmention.io but I think it only blocks specific URLs right now
#
aaronpk
if you go to the dashboard you can click X to prevent that source URL from showing up again
#
Loqi
[tantek] #85 Feature request: filter out webmentions from particular domains / sources
#
eli_oat[m]
I wasn’t certain if that just deleted that specific mention, or if it completely blocked the domain.
#
aaronpk
yeah it just blocks that one URL right now
#
eli_oat[m]
Grooving. Thanks!
#
eli_oat[m]
This is the first spam-adjacent I’ve had so far
KartikPrabhu joined the channel