#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
#
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 But here goes https://twtxt-webmentions1.mills.io/ or https://twtxt-webmentions2.mills.io/
#
prologic either one
#
prologic flluffy-critter also pointed out a few flaws in my implemtnation at https://github.com/prologic/twtxt/issues/91
#
prologic I'll work on those more later tonight
#
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
#
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 $ curl -q -s -I https://twtxt-webmentions1.mills.io/twt/bhbnbrnuxhhytlsrhjyp3zkz2ztndrc4mjl2copbvrfb5m623m7a | grep link
#
prologic link: <https://twtxt-webmentions1.mills.io/webmention?nick=prologic&feed=https://twtxt-webmentions1.mills.io/user/prologic/twtxt.txt>; rel="webmention"
#
prologic That's an improvement
#
prologic starting to look/work a bit better now
jonnybarnes joined the channel
#
jacky aaronpk: tiny https://www.genkithings.com/products/covert-dock
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)
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 😂
[snarfed] joined the channel
#
[snarfed] https://indieweb.org/permashortlink lists some other motivations
#
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?
#
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
jonnybarnes joined the channel
#
prologic Can someone send me a webmention to https://twtxt-webmentions1.mills.io/twt/kkilg3t23zp3cwvn3bpfg5zmukxgh2auvsbd5sn2rw5cq6ggqc6a ?
#
prologic I don't really have any other sources :)
#
prologic besides what I'm building :D
#
prologic I have two test instances :)
#
prologic Yes please!
[kodepoeten] joined the channel
#
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 :/
#
prologic how do I do that?
#
prologic link?
#
prologic ahh
#
prologic url encoded ofc
#
prologic one sec
#
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
jonnybarnes and prologic joined the channel; nickodd left the channel
#
prologic Well this finally works I think
#
prologic and mention here: https://twtxt-webmentions2.mills.io/twt/vbunqhoj2pj76rkzqwfmsbhrw3nks3dhtn4tiyjkhwmavv6fpr4a
jonnybarnes joined the channel
#
prologic so long? what do you mean :)
#
prologic they're blake2b hashes of the twt itself
#
prologic sure
#
prologic shall I just truncate the blake2b hash then?
#
prologic to the last 11?
#
prologic oh boi :)
#
prologic that's why I use the full hash!
#
prologic :P
#
prologic 0 hash collisions :)
[snarfed] joined the channel
#
[snarfed] obligatory: https://indieweb.org/URL_design
#
prologic I do kind of know something about crypto. / sorta/kinda :)
#
prologic you get a different hash
#
prologic it hashes the timestamp as and source feed uri
#
prologic no
#
prologic Timestamp + URI + Text
#
prologic why what?
#
prologic So that you can compute the hash ahead of time if you need to
#
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
#
prologic 11 chars of the base32 string of the hash are probably more bits than we'd ever need :)
#
prologic I'll check tomorrow
#
prologic Thanks for bringing this up aaronpk :)
jonnybarnes joined the channel
#
prologic How's this? http://0.0.0.0:8000/twt/43oyxln5qha
#
prologic Looks like this is 88bits so pretty damn near unlikely to collide
#
prologic Great
#
prologic I'll roll this to prod :)
#
prologic I basically just truncate it to last 11
#
prologic same hash/encoding
#
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
