#dev 2018-12-07

2018-12-07 UTC
[grantcodes], snarfed, iasai, oodani, iamJeffPerry, [eddie], ichoquo0Aigh9ie and cweiske joined the channel
#
Zegnat
sknebel, I wonder if riding on the conneg section of the WebSub spec is OK. When the feed is fetched with AutoAuth it could put a capability URL in the rel=self moving the bearer token from the headers into the URL.
#
Zegnat
The only problem is that you will then be leaking the token to the websub hub. Potentially meaning for privacy sake you will need to host your own hub if you are offering private feeds
#
kisik21
Ported over ALL content. Now the only thing I need to do to have feature parity with the static version of my site is webmention support...
#
kisik21
yay
#
Loqi
😊
iasai, barpthewire, swentel and aleksip joined the channel
#
aleksip
swentel: added $settings['reverse_proxy'] = TRUE; and $settings['reverse_proxy_addresses'] = array($_SERVER['REMOTE_ADDR']); to settings.php and now og:url shows as https!
#
swentel
aleksip, aha!
#
swentel
let's try and reparse my webmention then
#
swentel
it will probably work now (fingers crossed of course)
#
swentel
so if you edit my webmention: type => webmention, target => https://www.aleksip.net/trying-out-the-indieweb-module, published status to 0
#
Loqi
[swentel] No problem, thanks for testing it out! :)
#
aleksip
what do i put in 'property'? it is now 'no_link_found'
#
swentel
oh that's ok
#
swentel
that will be replaced
#
swentel
I think
#
swentel
let me quickly check
#
swentel
no, it's fine
#
aleksip
ok!
#
aleksip
did not help, unfortunately... type changes to 'link_not_found'
#
swentel
we got it working at least once right
#
aleksip
yes, although a comment was never created
#
aleksip
but the type changed correctly and the webmention was published
#
swentel
the different at that point was that the protocal was non https, I remember at least that
#
swentel
protocol (damn it)
#
swentel
you know what, I'll send another one
#
aleksip
ok, thanks, let's try that
#
swentel
ok, should be there
#
aleksip
yes it worked! :)
#
swentel
comment as well ?
#
aleksip
yes! although looks like i will have to configure how it is displayed properly
#
swentel
ah, so in manage display of the comment
#
swentel
you can set the webmention field
#
swentel
and use the 'Webmention formatter'
#
aleksip
a nice avatar and everything! great!
#
aleksip
thanks so much for all the help!
#
swentel
no problem
#
swentel
hmm I don't see the avatar yet, but that's probably cache :)
#
swentel
or my comment for that matter
#
aleksip
ah probably some permissions issue
#
swentel
aaah yes
#
swentel
'view webmentions'
#
swentel
for the anonymous user
#
aleksip
yes, that was it!
#
swentel
(I really need to get that kickstart module done)
#
swentel
great! :)
#
aleksip
:)
#
Loqi
😃
#
swentel
wonder why the reprocess didn't catch it, but oh well
#
aleksip
hope to find some time to get everything else like twitter integration working soon
#
swentel
I think this is the first drupal to drupal webmention, so it's historical :)
#
aleksip
nice! :)
#
aleksip
would love to see this in core some day configured as much as possible to just work out of the box. would be great for indieweb.
#
swentel
that might take a while to get in core hehe
#
swentel
although you never know of course
#
swentel
I know Dries is excited by it
#
swentel
and is going to install it
#
swentel
so who knows
#
swentel
maybe little parts
#
aleksip
it is good to have dreams! :) and really great that dries is excited about it.
#
GWG
Morning
#
Loqi
good morning
#
aleksip
swentel, maybe the reprocess failed because of the 'link_not_found' in 'property'? it was something else in when it worked.
[jgmac1106] joined the channel
#
swentel
aleksip, hmm, normally not, but wrote it down to test it none the less
#
aleksip
ok. i still need to learn how all this indieweb magic works! :D
[Khurt] joined the channel
#
aleksip
swentel, just checking if it is ok to drop the webmention_entity table since you mentioned it is not used any more? any other beta tables that can be dropped?
#
swentel
aleksip, oh yeah that can be dropped
#
swentel
I think that's it
#
aleksip
ok, thanks!
jgmac1106 joined the channel
#
GWG
swentel, what is next for you?
#
swentel
GWG, exif / original image
#
swentel
been looking at it for 2 days now
#
swentel
daunting stuff :/
#
GWG
swentel, sorry to contribute to that
#
GWG
I noticed it when trying to improve my exif usage
#
swentel
heh, no worries
#
swentel
I'm slowly leaning to 'send original' image if you want to have the exif data
#
GWG
I still don't know how to map exif properties to mf2
#
GWG
swentel, I think I could live with that. I want to store the original. My site can generate alternate sizes
#
swentel
there are so many exif properties per device that it's a mess to get them nicely
#
swentel
yes, drupal does that too
#
swentel
just need to make sure then that I don't run out of memory
#
GWG
I am not an Android developer, but I am surprised there isn't a library for that built in
aleksip_ joined the channel
#
GWG
I always assume someone has already solved my problem
#
GWG
Usually aaronpk
#
GWG
But I have some new Micropub stuff I want to add.
aleksip1 joined the channel
#
GWG
swentel, the q property that Eddie and I were discussing, would you support that and we could try a 3 way update again at some point?
#
swentel
GWG, there's a library for that yes, will look again over the weekend
#
GWG
Where all three of us support a feature at roughly the same time
#
swentel
GWG, eeuh, q which returns the supported values right ?
#
GWG
swentel, correct
#
swentel
yes, that still makes sense to me
#
swentel
don't think I'll be able to get that in before the end of the year on the drupal side though
#
GWG
swentel, no time frame. Just I like when a feature shows up with 2 clients and multiple endpoints supporting it. That's a great way to iterate
#
swentel
that's true
#
swentel
how often does [eddie] publish a new iOS release ?
#
GWG
Not sure, iOS is hard because of review requirements I think
#
GWG
But I will keep moving along
#
swentel
yeah, that can be annoying sometimes
#
swentel
!tell snarfed I think the fed bridgy webmention endpoint is down (gives me 500)
#
Loqi
Ok, I'll tell them that when I see them next
#
GWG
swentel, I just get excited. After 4 years, all the pieces for me are coming together
#
GWG
I don't have enough time to do all I want either
#
GWG
Although I do get the 25th, 26th, the 1st and an Eve of my choice off
#
swentel
I have holidays from the 15th or so
#
swentel
but I want to touch my computer as less as possible during those days
#
swentel
original image is the last thing I'd like to get right
#
swentel
this year
#
swentel
and some /tiny/ fixes in the drupal part
#
swentel
but yeah, it's pretty nice right now, I like my setup too
#
swentel
also, next release of indigenous will have the the debugging options, that's soooo handy
#
swentel
you can look at the response of channels, full timeline and single timeline item
#
aleksip
how does one leave the channel from the web interface? couldn't find a way. maybe an operator could kick aleksip1 out of here? :)
#
sknebel
I thought it'd time out if you close the tab, it doesn't?
#
aleksip
ah, looks like it just did! :D
[jgmac1106] joined the channel
#
aleksip
swentel, looks like the new webmention notification email is completely empty
#
swentel
no title, no body ?
#
aleksip
no
#
swentel
hmm crap
#
swentel
I don't use it anymore, I send a notification to my microsub channel
#
swentel
ironically I do have a test for the mail notification
#
swentel
but I don't check the title or body
#
aleksip
:)
#
swentel
or that a mail was send hehe
#
swentel
s/or/only
[Vincent] joined the channel
#
aleksip
well it is a nice-to-have feature that could be implemented outside of the indieweb module i guess...
#
swentel
aleksip, oh yes, that could be a rule or so
#
swentel
or custom
#
swentel
opened an issue for it
#
aleksip
i was pleasantly surprised to see that module offered this feature, but then again i'd like to have notifications for regular comments as well, so then i would need two solutions
#
swentel
yeah, I have a custom hook for the regular comments on my site
#
swentel
I see the problem
#
swentel
easy fix (pfew)
#
aleksip
great!
jgmac1106 joined the channel
#
swentel
alright, committed and pushed
#
swentel
thanks for reporting!
snarfed and [Serena] joined the channel
#
snarfed
swentel: re that bridgy fed 500, the request seemed to have a corrupt mime/multipart body
#
Loqi
snarfed: swentel left you a message 1 hour, 24 minutes ago: I think the fed bridgy webmention endpoint is down (gives me 500)
#
snarfed
or at least, that's why it died
#
snarfed
did you send it a different way than usual?
#
[jgmac1106]
@zegnat tumblr>json>mf2 cite [cleverdevil] work....Micropub as Migration tool be so cool
#
[jgmac1106]
check to see how well post type disvocery works with exported tumblr material
#
snarfed
(other incoming webmentions are working fine)
#
[jgmac1106]
for tags I think they have rel=tags or a p-category or inserting those wouldn't be too bad
#
[jgmac1106]
actually I will try to respons but feel free to correct my errors...have crazy day at office first....who schedules all day meetings the first friday after classes end....grrrrr
[kimberlyhirsh] and eli_oat joined the channel
#
swentel
snarfed, oh, mm interesting
#
swentel
I tried with a rest client (browser app) as I've send it twice already as I normal do
#
swentel
will try again
eli_oat1 joined the channel
#
swentel
hmm nothing again, weird and I didn't really change anything
[eddie] joined the channel
#
snarfed
you sent another wm to bridgy fed? i don't see it
[schmarty] and ben_thatmustbeme joined the channel
#
swentel
yeah, I got false back from the php webmention client
#
swentel
not sure why that is failing suddenly
#
swentel
let me try again with a rest client
#
swentel
(however brid.gy worked fine though for the same url)
[tantek] joined the channel
#
swentel
hmm got through now, at least on fed, but not on mastodon
#
swentel
weird :)
iasai joined the channel
#
swentel
oh, it is there
#
swentel
djee, async stuff is crap
snarfed joined the channel
eli_oat, snarfed, iasai, [jgmac1106], KartikPrabhu, aleksip, barpthewire and [Khurt] joined the channel
#
snarfed
so grantcodes[m] you like wordpress 5?
KartikPrabhu, [pfefferle], [eddie], iasai, eli_oat1, eli_oat, ben_thatmustbeme, snarfed, jackjamieson and gRegorLove joined the channel
#
sknebel
snarfed: what does bridgy need for backfeed from github? link in the github issue to post on my site and a u-syndication on the post? or do I need to create the issue using bridgy publish?
snarfed1 joined the channel
#
kisik21
IT WORKS
#
Loqi
Vika
#
kisik21
oh wait
KartikPrabhu joined the channel
#
kisik21
oh, I didn't set all endpoints correctly
#
kisik21
Sorry to the people who were on my site now, I've restarted it
#
sknebel
kisik21: the "reply with URL" form gives me a "method not allowed" error
#
kisik21
reload the page... and better clear the cache... I had a simple mistake in my config
#
kisik21
the thing should point onto webmention.io, but was pointing at the incorrectly-set URL of non-existing endpoint on my server
#
sknebel
yes, that was what I was seeing
#
sknebel
that your new dynamic site now?
#
kisik21
I'm just looking at the logs and trying to count how many of you people are trying to get on my site now
#
kisik21
sknebel: um, yeah
#
sknebel
kisik21++ nice!
#
Loqi
kisik21 has 4 karma in this channel over the last year (15 in all channels)
#
kisik21
it still has JS comments
#
kisik21
I plan on getting rid of it
#
kisik21
when I migrate to my own webmention endpoint
#
kisik21
by the way, sknebel, do you use an iPhone, a Mac or a Windows 10 PC?
#
sknebel
the latter right now
#
kisik21
ok
#
kisik21
then who was using an iPhone and a Mac?
#
sknebel
I used telegraph to send the webmention when the form didn't work, that might pretend to be a Mac
#
kisik21
reading server logs is fun
#
kisik21
Ok my micropub endpoint is broken
#
kisik21
because my token checker is broken
aleksip joined the channel
#
kisik21
It's literally my first serious foray into Flask
#
kisik21
and it's broken
#
aaronpk
it's okay, all code is broken in some way
#
snarfed1
everythingisbroken++
#
Loqi
everythingisbroken has 1 karma over the last year
#
kisik21
it's just so much of a shame that the Micropub endpoint was the FIRST THING there, and now it's broken for some reason... and the part that is broken is the part that didn't change
#
kisik21
the token validation
#
kisik21
sorry, I'll be debugging in production... expect massive server instabilities and temporary downtime
[Khurt] joined the channel
#
snarfed
kisik21: while you're fixing bugs, just fyi your latest post's permalink has a bad url, maybe your dev host?
#
kisik21
yep
#
kisik21
that's an easy fix, I just need to change the json file...
#
kisik21
ugh I'm so ashamed ><
#
kisik21
it was just a missing import!
[eddie] joined the channel
#
[eddie]
happens to all of us 🙂
[manton] and [grantcodes] joined the channel
#
sknebel
indeed... if you know where to click you can find the odd stack trace or two on my site too :D
iasai joined the channel
#
snarfed
kisik21: you may be interested in unit tests!
#
kisik21
snarfed: I know
#
kisik21
unit tests are a thing that I need to make
#
snarfed
testing++
#
Loqi
testing has 9 karma in this channel over the last year (15 in all channels)
#
snarfed
unittests++
#
Loqi
unittests has 1 karma over the last year
#
Zegnat
wonders how much of testing’s karma comes from snarfed ;)
#
snarfed
NEED MOAR
#
Zegnat
You’ll be happy to know we got a full suite of automated tests on the innertext code sknebel and I were testing in Nürnberg ;)
#
sknebel
oh right, we should do something with that ...
#
snarfed
Zegnat++
#
Loqi
Zegnat has 59 karma in this channel over the last year (167 in all channels)
#
Zegnat
sknebel, yeah, should probably put it into the mf2 parsers behind a flag for testing or something
#
sknebel
and/or mention it in the relevant issues if we haven't already
eduardm joined the channel
#
Zegnat
I honestly don’t remember where we did and didn’t mention it. I just remember finishing the code and then being happy to move on to something else
#
kisik21
sknebel: did you receive a webmention?
#
sknebel
I did not get a notification, let me check the log
#
kisik21
Oh wait
#
kisik21
no
#
kisik21
you shouldn't have a webmention
#
kisik21
Another bug has crawled
#
kisik21
sknebel: ping! check your notifications, a wild webmention should appear
#
sknebel
got it
#
Zegnat
Send all of the mentions!
#
kisik21
sknebel: yay
#
Zegnat
Here is a challenge, send a webmention to https://licit.li/
#
Zegnat
Oh. No. Don’t. I think that fails currently
#
kisik21
lol why
#
Zegnat
checks the webmention spec
#
Zegnat
I don’t think webmentions are supposed to follow redirects. And I just spotted I use http:// on the webmention endpoint URL there
#
kisik21
I use telegraph.p3k.io for webmentions currently. aaronpk, does it follow redirects on endpoints?
#
Zegnat
Oh, you didn’t write your own sender? That’ll definitely fail then
#
snarfed
ok aaronpk, i've deployed the fix for https://github.com/snarfed/granary/issues/158
#
Loqi
[snarfed] #158 use silo URL as first author URL, not web site(s) in profile
#
kisik21
snarfed++
#
Loqi
snarfed has 69 karma in this channel over the last year (114 in all channels)
#
Zegnat
Alright, fixed my endpoint URLs :D
#
kisik21
who went to www.fireburn.ru?
#
kisik21
there is no such site
#
kisik21
only fireburn.r
#
kisik21
s/r$/ru/
#
kisik21
Zegnat: it didn't recognize the @mention... debugging
#
Zegnat
Trying to mention licit.li? If you are using telegraph, that’s not going to fly :P
#
Zegnat
But have fun debugging, it is an interesting exercise!
#
kisik21
Zegnat: mf2py pulls rel= urls, means I could make my own telegraph
#
kisik21
and I mean "my Micropub endpoint didn't recognize the syntax for mentioning a person"
#
sknebel
Zegnat: you need entirely uncommon tools in Python to get it, so mf2py won't fly either
#
Zegnat
Ah, good to know it isn’t just PHP that hasn’t caught on :P
#
sknebel
in PHP it's just new enough + flags, right?
#
sknebel
in Python you need entirely different libraries as far as I know
#
Zegnat
Theoretically. Though I think the problem on aaronpk’s server was that the version of curl linked into PHP was still too old, and he needed to recompile PHP with a more recent version or something. At which point that was abandoned.
#
sknebel
well, as long as your TLS is still wrong I maintain its *obviously* your fault :D
#
kisik21
Zegnat: I get "connection aborted" errors from Python but can access your site from the browser
#
Zegnat
I maintain that is an nginx bug, sknebel :P
#
sknebel
your server, your responsiblity to fix it
#
sknebel
I even offered to help you patch nginx!
#
Zegnat
I am not even going to touch that with a long pole, haha
#
Zegnat
I like to stick to my scripting languages, thank-you-very-much
#
Zegnat
Just need to find different server software, I guess
#
kisik21
Zegnat: what's up with your server, I can't curl your homepage
#
kisik21
it drops the connection
#
Zegnat
kisik21, it is magic
#
kisik21
I don't need magic! I need our software to interoperate!
#
Zegnat
The less magical explanation is: browsers do HTTP/2 so I do HTTP/2. Your curl probably isn’t setup to do HTTP/2 if it is failing
#
kisik21
are you http/2 only?
#
kisik21
oops
#
kisik21
yep, my tools don't do http/2
#
kisik21
why did you decide to drop http/1.1?
#
Zegnat
Also, it was late
#
Zegnat
Also, wondered if it could be done
#
Zegnat
I think that covers the main reasons, right sknebel? XD
#
sknebel
I think so, yes :D
#
kisik21
Well... now I need to recompile ALL of my software on a weakling Raspberry Pi 2. Are you satisfied?
#
kisik21
another good reason to switch OS on my server btw
#
Zegnat
So far I haven’t had a human visitors complain. All modern browsers seem to auto upgrade when h2 when it is advertised in the ALPN. So really, I am only messing with automated tooling.
#
Zegnat
(Wow, the English grammar there was bad. But you get my drift.)
#
kisik21
also you're messing with me :3
strugee joined the channel
#
Zegnat
I wonder if https://h2o.examp1e.net/ might do the right ALPN thing
#
sknebel
I seem to remember we found that Caddy did?
#
Zegnat
sknebel, ever seen that server?
#
Zegnat
Yeah. But I am not sure I like the whole licensing deal around Caddy
#
sknebel
I don't think I've seen that one before, no
[relapse] joined the channel
#
sknebel
HAProxy also is flexible in configuring ALPN
#
Zegnat
But that would have to sit infront of nginx right? Or can it replace it? I’d rather not add too many separate things to the stack
#
gRegorLove
Haha, the http/2 thing can almost be an FAQ section on your user page, Zegnat
#
kisik21
please remind me - what's a rel for the old webmention spec?
#
sknebel
Zegnat: it can't replace nginx, no.
#
Zegnat
kisik21, I think it used to be rel="http://webmention.org/". If that’s what you meant
#
Zegnat
gRegorLove, I just love the confusion people have when they curl and use their browser and they realise those two things work completely differently
#
aaronpk
such a troublemaker
#
Zegnat
Which is something I also constantly forget. E.g. see the recent issue about compressed resources. Browsers have no problem with it, curl slightly less so
jgmac1106 joined the channel
#
kisik21
Zegnat: oh, I still remember those times when what you curl is what you browse... when HTTP was still version 1.1
#
kisik21
or even 1.0, I'm not sure
#
kisik21
heck, I even had an ADSL modem a long time ago
#
Zegnat
Ah, yes, how times have changed. Back then I had to pay by the minute, now I pay by the byte
iasai joined the channel
#
kisik21
and I have unlimited data on my phone. The only caveat is that I should pay 50 rubles ($1 ~ 65 rubles) if I connect other devices to it via the hotspot (probably I could change TTL to evade this)
#
kisik21
50 rubles a day, I mean
#
kisik21
but that's more for #chat...
#
kisik21
Who else other than Zegnat can challenge me to mention them?
#
kisik21
Zegnat: no offense, I'd like to beat that challenge but it would require me several days of non-stop compiling
[jgmac1106] and leg joined the channel
#
gRegorLove
kisik21, webmention you mean? you can send me one, gregorlove.com
#
[jgmac1106]
Webmention everyone... Actually I do not know what happens to generic webmentions on Known... Send one to https://quickthoughts.jgregorymcverry.com
#
kisik21
gRegorLove: huh, I seem to have made a silly assumption that the h-card is always on the main page
#
kisik21
wait no it is there
#
gRegorLove
I do have an h-card there, however it's an odd one since it's inside the h-feed (kind of accidentally)
#
gRegorLove
It should be found via the representative h-card algorithm though.
#
kisik21
that's a nice challenge for my hcardify(url) function!
#
kisik21
> if a page contains an h-card with a url property value which also has a rel=me relation
#
kisik21
can someone clarify?
#
kisik21
do I need to recursively parse the page for an element containing a rel=me link which appears to be an h-card?
snarfed joined the channel
#
gRegorLove
The mf2 parser returns a list of rels. If you go through each h-card in order, the first one you find that has a u-url matching a rel=me is the rep. h-card
#
kisik21
yeah
#
gRegorLove
No recursive parsing
#
kisik21
but seems like I need to do that recursively for all items
#
gRegorLove
rels are page-scoped
#
kisik21
rels are page-scoped
#
kisik21
but h-cards need to be searched for recursively
#
gRegorLove
So it doesn't need to appear within the HTML of the h-card
#
gRegorLove
Ah, I think I understand. I guess so, depending which parser / helper libs you're using.
#
kisik21
mf2py
#
gRegorLove
The one I use for PHP can give me all the h-cards in a page, so I can just iterate through them.
#
gRegorLove
(The helper lib does that, that is.
#
kisik21
because it searches recursively
#
Loqi
[microformats] mf2py: Microformats2 parser written in Python
#
kisik21
THIS WAS IN THE LIBRARY??!?!!!!!
#
kisik21
I feel dumber than ever...
#
kisik21
gRegorLove: by the way that doesn't work
#
gRegorLove
The filter doesn't return the h-card?
#
gRegorLove
That documentation is about the extent of my knowledge with mf2py, heh.
#
gRegorLove
sknebel or KartikPrabhu can probably help more, though
#
gRegorLove
Don't feel dumb! :)
#
KartikPrabhu
the filter_by_type functions only filters top-level items
#
KartikPrabhu
that could be fixed I suppose feel free to file issue or send a PR https://github.com/microformats/mf2py/blob/master/mf2py/parser.py#L478
#
kisik21
gRegorLove: I got two h-cards by recursive parsing. Now I only need to apply the algorithm to it...
#
KartikPrabhu
one reason to avoid this would be that the nesting of a h-card is important
#
KartikPrabhu
you don't want a nested h-card in a h-cite (for instance) to be mistaken for a top-level h-card
#
kisik21
representative h-card algo helps with that
#
gRegorLove
True, might be better for a helper lib, like it is in php-mf-cleaner. Not part of the parsing spec.
#
kisik21
I think I'll have this lib soon
#
KartikPrabhu
there is also mf2util which is a helper lib for mf2py
#
Loqi
[kylewm] mf2util: Utilities for interpreting microformats2 data
snarfed joined the channel