#dev 2017-10-17

2017-10-17 UTC
EmreSokullu joined the channel
#
Loqi
mblaney: snarfed left you a message 9 hours, 13 minutes ago: sorry for the trouble! yeah, if you don't send Accept-Encoding, that actually means you're ok with any encoding, including gzip. https://tools.ietf.org/html/rfc7231#section-5.3.4
#
Loqi
mblaney: snarfed left you a message 9 hours, 12 minutes ago: looks like you have to send something like Accept-Encoding: identity to disable it...but that doesn't work here either. (i don't control this serving path; google does.) i'll see what i can do.
[kevinmarks] joined the channel
#
[kevinmarks]
The trouble with developing in the UK is that in the winter you are in the Z timezone.
#
mblaney
thanks snarfed, good to know.
#
mblaney
adding the encoding check is pretty easy, I've got it discovering the endpoint now, but sending the webmention returns 500 from fed.brid.gy.
snarfed joined the channel
#
snarfed
hey mblaney, thanks for trying bridgy fed! that 500 is actually due to a 500 from the mastodon instance itself :(
#
snarfed
i need to change that to a 502
#
snarfed
mblaney: try a mastodon instance on 1.6, e.g. https://mastodon.technology/ or https://mastodon.social/
#
snarfed
(bne.social is only 1.4.3)
#
[kevinmarks]
having to set up .well-known is the blocker for me.
#
[kevinmarks]
(not Ryan's fault)
eli_oat, [eddie], [miklb] and [chrisaldrich] joined the channel
#
mblaney
ok sending a webmention for https://mastodon.technology/@snarfed/3194674 was successful, but I had to change it to u-in-reply-to.
#
Loqi
[Ryan Barrett] Working on connecting Mastodon with the #IndieWeb! https://fed.brid.gy/ https://snarfed.org/indieweb-ostatus-bridge
#
aaronpk
change from what?
#
mblaney
I got a 400 Bad Request for sending u-like-of
renem and snarfed joined the channel
#
snarfed
hey mblaney, glad you're trying bridgy fed more! looks like some progress. i'll be around in 60-90m to help debug
eli_oat, [miklb] and tbbrown joined the channel
#
snarfed
mblaney: i'm fixing the in-reply-to bug now, thanks for finding it
#
snarfed
i'm also planning to pass through fedsocnet error responses
#
mblaney
no worries snarfed, happy to have a go.
#
mblaney
it would be good to know why my reply didn't show up on your post linked to above, I haven't implemented enough to think that it should work but it would help to find what I should fix first.
#
snarfed
mblaney: yes! mastodon returned 202 to bridgy fed's activitypub post instead of 201, which means it accepted but won't display it. i'll go back through notes to find out why exactly.
#
snarfed
aaronpk: just fyi the line permalinks on https://chat.indieweb.org/ seem to be timezone confused
KartikPrabhu, EmreSokullu, jjuran, cweiske, cweiske2, tantek and calumryan joined the channel
#
calumryan
!tell barryf fixed the rsvps that weren’t showing on https://hwclondon.co.uk/meetups/20171018 Looks like the script behind this was trying to handle non-rsvp webmentions that threw the error
#
Loqi
Ok, I'll tell them that when I see them next
#
Loqi
18 October 2017 HWC London meeting
#
tantek
any idea why I was seeing the {{ }} thing?
#
calumryan
I suspect it’s the Vue.js template delaying render, the site’s built on Jekyll (hence static generated)
#
sknebel
tantek: did you have scripts blocked? if I do that, I get that as well
#
sknebel
needed to whitelist unpkg and webmention.io
#
tantek
just odd that the fallback would show {{ }} code
#
calumryan
In that case might need to add v-cloak to hide uncompiled components https://vuejs.org/v2/api/#v-cloak
EmreSoku_, [pfefferle], tantek, tantek_, KartikPrabhu, [kevinmarks] and jeremycherfas joined the channel
#
petermolnar
I'm trying to figure out if headless chrome can be told to save a the page as mhtml but I've found nothing so far. If anyone knows the answer, please give one: https://superuser.com/questions/1259542/headless-chrome-save-page-as-mhtml?noredirect=1#comment1852614_1259542
[barryf] joined the channel
#
[barryf]
Thanks for fixing, calumryan.
#
Loqi
[barryf]: calumryan left you a message 3 hours, 10 minutes ago: fixed the rsvps that weren’t showing on https://hwclondon.co.uk/meetups/20171018 Looks like the script behind this was trying to handle non-rsvp webmentions that threw the error
jeremych_, eli_oat, John__, calumryan, snarfed and [kevinmarks] joined the channel
#
[kevinmarks]
Hm, did mine not make it through?
#
Loqi
[Kevin Marks] Yes: Is there a facebook POSSE copy?
[manton] joined the channel
#
sknebel
is on the train, trying to wrap head around activitypub
#
sknebel
Do mastodon etc use the sharedInbox system already?
snarfed and [eddie] joined the channel
#
[eddie]
aaronpk: Almost there, but a bit confused. Wondering if you have an easy direction to point me in. I think I have all the indieauth code right, I tried to make it function as closely to the login functions as possible while working with different databases.
#
[eddie]
aaronpk: When I get to verifyAuthCode it returns the me, and an empty state param
#
[eddie]
Response code 200
#
aaronpk
what returns that?
#
[eddie]
When exchanging the code for token, it returns me and scope
#
[eddie]
empty scope, not empty state ?
#
[eddie]
so I end up with no access_token
#
[eddie]
I'm using my login which uses IndieAuth
#
aaronpk
ah sounds like you need to request the authorization code instead of just login
#
[eddie]
ohhhhh
[barryf] joined the channel
#
[eddie]
That makes sense. I tried to be too similar to the compass login haha
#
Loqi
nice
#
aaronpk
yep! cause compass doesn't need an access token, it's just signing the user in
#
[eddie]
That makes sense ? And it makes sense that I haven't run into this before because typically I'm writing from scratch so I follow the spec with a closer eye. haha
tbbrown, [kevinmarks], snarfed, snarfed1 and [miklb] joined the channel
#
[miklb]
hmm. So snarfed updated the docs for fed.brid.gy but I’m still a little confused.
#
[miklb]
I _think_ @memiklb.com can now be followed
snarfed1 joined the channel
#
[miklb]
not sure how to test that though
#
aaronpk
whoops, Slack is over-eagerly matching that `@miklb`
#
aaronpk
for those of you on IRC that's @me@miklb.com
#
[miklb]
thanks
#
aaronpk
it didn't show up when I searched for it from mastodon.social
#
tantek
is not so into the ATATs
#
tantek
too cumbersome and vulnerable to harpoon cables
#
[eddie]
tantek++
#
Loqi
tantek has 15 karma in this channel (390 overall)
#
sknebel
does searching do discovery, or do you have to explicitly follow it before the instance knows about it?
#
aaronpk
the search box was finding snarfed. not sure if that's cause he had already added himself there or what
#
aaronpk
i couldn't find anything else in the UI that would let me type in a name tho
#
[miklb]
I checked the search and nothing shows up
#
sknebel
hm, no, according to docs searching for an external profile is supposed to work
#
[miklb]
for me. I do see snarfed in the search. Maybe I don’t have it properly wired up. I have pfefferle’s pubsubhubbub plugin, an atom feed & I configured the nginx conf
#
[miklb]
I did set up a mastodon.social account
#
[miklb]
wonder if I need to add a new hub url for mastodon
#
[eddie]
aaronpk: I have my micropub endpoint and token in the Compass now. Watching my server for a micropub request but haven't seen anything yet. I see the trip on my server (the pink colored section?)
#
sknebel
[miklb]: when I try to access the webfinger thing the url I get redirected to seems wrong, but I'm not 100% sure what it's supposed to be. guess you'll have to ask snarfed to help debug
#
[eddie]
how long does it typically take for compass to process and send a trip to the server. Since I've never done this before, I'm not sure if I have all the job process stuff set up correctly.
#
aaronpk
[eddie]: you'll need to run the worker
#
[eddie]
aaronpk: ahh okay. Is that something you've added to cron on your server?
#
aaronpk
not cron, it's a separate process that runs continuously
#
aaronpk
you can try it on the command line: php artisan queue:listen
#
[eddie]
ohh interesting
jeremycherfas, KevinMarks and snarfed1 joined the channel
#
[eddie]
hmmm I ran it but nothing seems to be happening. My micropub server hasn't registered any activity (not even errors)
#
[eddie]
At the end of the compass log I see: [2017-10-17 16:05:11] lumen.INFO: Got a trip record
snarfed joined the channel
#
aaronpk
check laravel.log
#
[eddie]
hmmm in the same directory? I only have a lumen.log in that directory
#
aaronpk
Should be in storage/logs
#
[eddie]
hmm yeah, just lumen.log in there
#
aaronpk
oh yeah that's what it's called
#
aaronpk
forgot this was before they moved all the lumen stuff back into laravel
KevinMarks joined the channel
#
[eddie]
aaronpk: Ohhh gotcha. All that's showing up in the log since I've started the artisan queue is: [2017-10-17 16:05:11] lumen.INFO: Got a trip record
#
[eddie]
[2017-10-17 16:35:28] lumen.INFO: Got a trip record which really came from me sending test trips from the app
[miklb] joined the channel
#
[miklb]
sknebel, ah I see now, somewhere it’s getting an extra trailing slash in the redirect
#
sknebel
[miklb]: yep, that looked odd to me
#
[miklb]
I opened an issue.
#
sknebel
[miklb]: just remove the slash from the nginx syntax and try again if it works then?
#
[miklb]
I removed the / in front of .well-known and then I get a 404
#
[miklb]
oh, that one. I’ll try
#
[miklb]
that removes the extra trailing slash but still returns a 400 on fed.brid.gy
#
[miklb]
making progress. Getting an error saying can’t find a representative h-card on miklb.com
#
snarfed
hey, glad to hear progress! and thanks for the doc issue, will fix
#
snarfed
it uses mf2util to find representative h-card, which afaik follows http://microformats.org/wiki/representative-h-card-parsing pretty well
#
Loqi
representative-h-card-parsing
#
[miklb]
I totally see my h-card is broken. Not sure when I did that
#
snarfed
sknebel, re mastodon and activitypub sharedInbox, yes! looks like they've supported it since their first AP release, 1.6
#
snarfed
fetching a mastodon AS2 profile with e.g. curl -v -H 'Accept: application/activity+json' https://mastodon.technology/@snarfed includes:
#
snarfed
"endpoints": {"sharedInbox": "https://mastodon.technology/inbox"}
#
[eddie]
!tell aaronpk: When you get a chance later today (no rush) here's a gist that contains some errors that appeared while running php artisan queue:listen
#
Loqi
Ok, I'll tell them that when I see them next
#
sknebel
snarfed: thx, then I can peek at what they are doing for examples. that section of the spec weren't all that clear
#
sknebel
*wasn't
#
snarfed
it's new since may
#
aaronpk
[eddie]: that's weird
#
aaronpk
looks like namespacing errors
#
snarfed
oh it just
#
snarfed
oh it's just a renaming of publicInbox. got it
#
aaronpk
did you say you're on PHP 7?
#
[eddie]
yep 7.0.22
#
sknebel
(already filed an issue complaining about a specific sentence, but I'll have to think up a friendly way of "I have no idea what a request can and can't look like after reading this" for another one)
#
aaronpk
i don't think i've run this in 7 yet. not sure if there was a lot of changes related to namespacing between 5 and 7 but I didn't think there was
#
[eddie]
ohhh interesting
#
[eddie]
you're on 5?
#
aaronpk
5.6 yeah
#
aaronpk
i'm not quite ready to update everything to 7, but it's getting close to the time i will need to
#
[eddie]
gotcha. Well that helps I can try using these errors and look through PHP 7 changes and see if that can shed some light on stuff. If so, I'll make a new branch for php7 with any changes I need to make to get things working on my system and that will provide a starting base when you need to head that way.
#
[eddie]
!tell sebsel What version of PHP are you using with Compass? (You are using compass if I remember correctly)
#
Loqi
Ok, I'll tell them that when I see them next
#
dgold
working my way through the micropub.rocks to make nanopub more feature-complete
#
dgold
there would appear to be some, shall we say, _difficulties_ in that the tests look for some properties to be returned as an array
#
dgold
so e.g. "published": [ "$date" ]
#
sknebel
dgold: "some"? shouldn't *all* properties be arrays?
#
aaronpk
yeah, everything should be returned as an array. hopefully that rule makes it simpler because there are no exceptions for vocabularies
#
dgold
whereas this breaks Hugo, which looks for "published": "date"
#
dgold
sknebel: they're in an array, just the actual _properties_ are spec'd as arrays, even when like publication date, there's only one property
#
aaronpk
it corresponds to the parsed microformats JSON format
#
sknebel
yes, in mf2 json every property always has an array of values
#
dgold
oh, I know, and I understand. I have the implementation working, just now left with tying that back to Hugo
#
sknebel
yeah. in my implementation I basically have a list of properties I can't handle in duplicate, and then just run a function over all of them that pulls the first entry out and complains if there are more than that
KevinMarks joined the channel
#
GWG
Evening
KartikPrabhu joined the channel
#
GWG
I need to check time zone handling by people other than aaronpk
#
GWG
In Micropub clients
#
GWG
Who has a test mode like Quill's
KevinMarks_, sebsel, [cleverdevil], KevinMarks and snarfed joined the channel
#
GWG
snarfed, code works in production
#
snarfed
GWG: great!
#
GWG
snarfed, that is what I care about most. Works for me
#
GWG
Everyone else is good too
#
snarfed
great! can't wait to merge once the old tests are back in
#
GWG
I intend to do it
gRegorLove, KevinMarks_, KevinMarks, John__, snarfed, iamJeffPerry and EmreSoku_ joined the channel
#
GWG
snarfed: Test returned? Merge?
#
snarfed
merging now
#
snarfed
thanks for sticking with the tests!
#
GWG
lets out a woohoo
#
GWG
blows his noisemaker
#
snarfed
heh. congrats!
#
GWG
plays the Stars and Stripes Forever
#
GWG
Okay, party over
#
GWG
snarfed: I concurrently added 4 lines to Simple Location that takes the timezone parameter the Micropub plugin now passes, if present, and uses it to change the displayed timezone to the right one.
#
GWG
Simple Location already has that feature
KevinMarks, EmreSoku_ and [miklb] joined the channel
#
Loqi
gwg has 14 karma in this channel (263 overall)
#
@iamJeffPerry
Diving into this Indieweb stuff with no coding knowledge was actually easier that I thought.
(twitter.com/_/status/920412020641533952)
#
[miklb]
w00t looks like I got fed.brid.gy working. Now to see if it shows up in Mastodon
#
gRegorLove
awesome!
snarfed joined the channel
#
snarfed
[miklb]: yeah honestly i didn't really do much/any work on getting original posts to show up in mastodon
#
snarfed
mostly just federating responses back and forth
#
snarfed
i should look more at federating original posts
#
[miklb]
no worries. I can search and find @mesnarfed.org but my domain not showing up
#
snarfed
yeah i'm probably in there only because i sent it a reply, not because my site is set up any specific way
#
[miklb]
gotcha
#
snarfed
theoretically discovery should just work, based on https://github.com/tootsuite/mastodon/issues/1441#issuecomment-302969948 , but evidently it doesn't
#
Loqi
[Gargron] >an Atom feed with activitystream data Just an Atom feed will do too, but it needs to contain a link to a Pubsubhubbub hub >webfinger support Yes. Link to Atom feed, link to profile, link to salmon, magic key >an XRD at .well-known/host-...
#
[miklb]
I’ll keep poking at it as ideas come along. Thanks for all the work thus far
KevinMarks, [cleverdevil], snarfed, KartikPrabhu and [kevinmarks] joined the channel