#dev 2020-08-17

2020-08-17 UTC
jonnybarnes, KartikPrabhu, beko, justache, nickodd and prologic joined the channel
#
prologic
Can someone help me test my WebMentions receiver?
#
prologic
I think it still has a few quirks/bugs
mblaney joined the channel
#
mblaney
hi prologic sure, I can help.
#
Loqi
mblaney: [jgmac1106] left you a message on 2020-03-20 at 11:59am UTC: when we get my edu106 students will be setting up their websites, choices will be ihazawebsite, micro.blog or tumblr
#
Loqi
mblaney: GWG left you a message on 2020-04-13 at 9:31pm UTC: https://core.trac.wordpress.org/ticket/36669
#
prologic
mblaney I'm not even sure it will work very well to be honest
#
prologic
I think I've stuffed up a few things
#
prologic
and I nuked all the mf2 parsing as I couldn't make sense of that
#
prologic
either one
#
prologic
flluffy-critter also pointed out a few flaws in my implemtnation at https://github.com/prologic/twtxt/issues/91
#
Loqi
[fluffy-critter] #91 IndieWeb support
#
prologic
I'll work on those more later tonight
#
mblaney
prologic: looks like it's working ok to me. successfully posted to your webmention endpoint, returned 202.
#
prologic
cool
#
prologic
wehther or not the backend actually did anything with it
#
prologic
is another sory :)
#
prologic
yeah looks like it went no where
#
mblaney
well it's a good start :-)
#
mblaney
you can always trigger a resend, let me know if you need the source url.
#
aaronpk
prologic: please do try webmention.rocks too
#
prologic
I've hacked the library I've effectively "lifed" now a bit
#
prologic
and added what I _think_ are optional and should be ignored by normal webmentions
#
prologic
aaronpk yeah will do
#
prologic
like according to the spec
#
prologic
webmention senders have to respect any url query params in the endpoint
#
prologic
so I'm going to abuse that between twtxt.net pods
#
prologic
That's an improvement
#
prologic
starting to look/work a bit better now
jonnybarnes joined the channel
#
mblaney
prologic: there are more standardised ways to advertise that extra information, rel=feed and h-card for nicknames, for example.
#
jacky
s/more standarised/more common/ no?
#
jacky
using it in the header is also permissible via the spec
#
mblaney
jacky: using what in the header?
#
jacky
sorry, should have been more clear
#
jacky
exposing Webmention endpoints in the Link header is also a decent method
#
mblaney
sure, I was referring to the extra parameters that prologic wants discovered.
#
mblaney
there are documented ways to do that without overloading webmention discovery
KartikPrabhu and loicm joined the channel
#
prologic
The way I'm trying to do this now is via the LInk header
#
prologic
e.g:
#
prologic
Link: <%s/user/%s/webmention>; rel="webmention"; nick="%s"; url="%s
moppy, cweiske, [Rose], swentel, jeremych_, craftyphotons, ndegruchy, kitt, [Ana_Rodrigues], KartikPrabhu, prologic, kraem, gxt, floridafruitgeek, [tonz], [tb], dckc and nickodd joined the channel
#
@flameborn
↩️ Yeah, that’s the point of Docker, you can spin up whatever container you’d like, also called a base image, and create your own image by adding stuff to it. Speaking of IndieAuth, I think Hugo has a theme that has IndieWeb support. Hugo in general is awesome.
(twitter.com/_/status/1295369654324662274)
#
GWG
Curious after yesterday..who here still maintains a url shortener and why?
kraem and [schmarty] joined the channel
#
[schmarty]
GWG: i do! it's an extremely simple algorithmic shortener and tho i don't really use it day to day it also doesn't require any extra maintenance at this point 😂
#
GWG
[schmarty]: I realized yesterday I have one, it works...but other than Bridgy picking up on it and using it in publishing, I don't think I use it for much.
#
GWG
Wondering if the moment had passed
[snarfed] joined the channel
#
[snarfed]
the big motivation was way back when twitter counted characters in URLs. they switched to a flat 23 chars per URL a long time ago, which removed that motivation entirely
#
jacky
prologic: is there any reason you can't put those extra parameters in the URL?
#
jacky
like the nickname specifically? you'd be getting the URL as part of the request (if url == the thing being sent a webmention)
#
prologic
yeah
#
[snarfed]
we have mf2 for nickname, right? p-nickname, https://microformats.org/wiki/h-card#Properties . why put it in a webmention endpoint URL?
#
aaronpk
smells something fishy
#
[snarfed]
oh for the receiver?
#
aaronpk
keep in mind that whatever you put in your webmention endpoint URL is untrusted external data when you receive a webmention, anyone can change it or fake it
#
prologic
yes I realize this
#
prologic
hence I'm going back to the drawing board here
#
prologic
I _think_ I nearly have this worked out
#
prologic
each twt has appropriate h-entry/h-card mf2 data
#
prologic
so that works nicely
#
prologic
and my webmention receiver will verify and look that up
#
prologic
also its only users on twtxt.net that have a valid webmention endpoint; e.g: twtxt.net/user/:nick/webmention
#
[snarfed]
so what will it do when i post a reply to user A and send a wm for it to user B’s wm endpoint?
jonnybarnes joined the channel
#
aaronpk
prologic: you can get webmention.rocks to send a webmention to you whenever
#
[snarfed]
^ yup or you can yourself! from any source you want
#
prologic
I don't really have any other sources :)
#
prologic
besides what I'm building :D
#
prologic
I have two test instances :)
#
[snarfed]
ah you want interop testing, ok
#
aaronpk
i think [snarfed] means like from a static HTML page :)
#
prologic
Yes please!
[kodepoeten] joined the channel
#
[snarfed]
yup, i do much of bridgy publish’s interop testing with static html
#
[snarfed]
(you’ll eventually want something like that for unit/integration tests anyway)
#
prologic
I think this mf2 parser is broken :/
#
prologic
hmmm
#
prologic
aaronpk I saw your webmention inbound in the logs
#
prologic
but it went nowhere :/
#
aaronpk
well that page is up on my site now so you can always re-send the webmention yourself to test now!
#
prologic
how do I do that?
#
prologic
link?
#
aaronpk
you should have the link in your logs no?
#
prologic
ahh
#
prologic
url encoded ofc
#
prologic
one sec
#
aaronpk
then just send the post request from curl
#
Loqi
definitely
#
prologic
aaronpk at least on your site is showed some of the right stuff
#
prologic
the h-card is a little weird though
#
prologic
I haven't gotten that quite right
[chrisaldrich], jonnybarnes, vika_nezrimaya, [Morgan_F] and [manton] joined the channel; prologic left the channel
#
[manton]
@prologic Speaking of replies, the Atom feed from twtxt is kind of unusual… The full post is in the title but with escaped brackets around the username, which creates problems when the feed is added on Micro.blog. Why not include the HTML of the post in the content with the username linked? Example of the problem: https://micro.blog/felixp7/10116171
#
Loqi
[felixp7] @ (re creative prompts) Well, this is one way to create engagement. A lot of people seem to love them. Not me. Just maybe not every single day for a month, you know. And yes, communities need to be intentional to hold together. twtxt.net
#
[manton]
To be honest, you’re going to hit more issues like this because the native format of twtxt is just text. My 2 cents is be careful you don’t reinvent the wheel instead of just using HTML which can already handle everything. This is why Micro.blog is based on blogs.
jonnybarnes and prologic joined the channel; nickodd left the channel
#
prologic
Well this finally works I think
#
aaronpk
those urls are *so long* lol
#
aaronpk
i just sent mine again but i don't see it
jonnybarnes joined the channel
#
prologic
so long? what do you mean :)
#
prologic
they're blake2b hashes of the twt itself
#
aaronpk
youtube video IDs are 11 characters long, and there are a *lot* of youtube videos. you really don't need more chars than that :)
#
prologic
sure
#
prologic
shall I just truncate the blake2b hash then?
#
prologic
to the last 11?
#
aaronpk
depends on how likely a hash collision of the last 11 chars is
#
prologic
oh boi :)
#
prologic
that's why I use the full hash!
#
prologic
:P
#
aaronpk
any reason in particular?
#
prologic
0 hash collisions :)
#
aaronpk
what happens if someone posts the same text twice?
[snarfed] joined the channel
#
prologic
I do kind of know something about crypto. / sorta/kinda :)
#
prologic
you get a different hash
#
aaronpk
so it's not a hash of *just* the text?
#
prologic
it hashes the timestamp as and source feed uri
#
prologic
no
#
aaronpk
got it. but why
#
prologic
Timestamp + URI + Text
#
prologic
why what?
#
aaronpk
why use a hash at all? why not just a random string?
#
prologic
So that you can compute the hash ahead of time if you need to
#
[snarfed]
aaron’s point is that URLs are UI just like what shows up on the page itself, and hashes are bad UI
#
[snarfed]
not the worst, but not great
#
prologic
right I see
#
prologic
well I'll bring it up with the team
#
prologic
the only thing I can think of doing is to shorten/truncate it and loose some entropy in the hash bits
#
aaronpk
you can also use an alternative character set to shorten the overall length
#
prologic
11 chars of the base32 string of the hash are probably more bits than we'd ever need :)
#
aaronpk
e.g. it looks like there are no caps in your current URLs, so that would add another 26 characters
#
prologic
I'll check tomorrow
#
aaronpk
i'm a fan of base60, and 11 chars of a base60 charset is far more entropy than you ever need, it's likely even enough to just randomly generate a string and nearly guarantee that it will be unique each time you do that
#
prologic
Thanks for bringing this up aaronpk :)
#
[snarfed]
prologic++ aaronpk++
#
Loqi
prologic has 1 karma in this channel over the last year (2 in all channels)
#
Loqi
aaronpk has 67 karma in this channel over the last year (245 in all channels)
jonnybarnes joined the channel
#
prologic
Looks like this is 88bits so pretty damn near unlikely to collide
#
aaronpk
much more readable
#
prologic
Great
#
prologic
I'll roll this to prod :)
#
prologic
I basically just truncate it to last 11
#
prologic
same hash/encoding
#
aaronpk
while you're in there, i noticed a minor microformats bug too
#
aaronpk
there's an extra p-name class in the author info
#
prologic
hmm
#
prologic
lemme switch to that branch
#
prologic
Ahh you're right
#
prologic
Fixed!
#
prologic
it'll update in 5mins
skippy1, [tantek] and [jgmac1106] joined the channel
#
prologic
in case anyone has the ability to help review this?
gRegorLove and [tb] joined the channel
#
[tb]
Gah. Doing a `HEAD` request (or `GET` for that matter) to https://twitter.com/nonexistent-username still returns an HTTP 200
jonnybarnes, KartikPrabhu, zenen and [fluffy] joined the channel