#dev 2022-11-19

2022-11-19 UTC
#
[snarfed]
[tantek] I vaguely remember a page you wrote or contributed to about standards body best practices and guidelines, personality types/trolls who are attracted to them and cause problems and how to deal with them, etc. any idea where that is?
#
[snarfed]
haven't found it by searching pbworks or our wiki or google yet
#
[KevinMarks]
filmgirl++ has been to HWC SF too
#
Loqi
filmgirl has 3 karma over the last year
#
[tantek]
snarfed, I G-searched for best open standards practices and my blog post is on page 1 🙂 https://tantek.com/2011/168/b1/practices-good-open-web-standards-development (it's a bit old but mostly still applicable. there's plenty I would update and somewhere I have a draft I haven't gotten to)
#
Loqi
[Tantek Çelik] 10 Practices for Good Open Web Standards Development
#
[KevinMarks]
We talked about verification and rel=me https://www.kevinmarks.com/hwc2016-09-07.html
#
Loqi
Homebrew Website Club 2016-09-07
#
[tantek]
snarfed, I used to have the top result for Troll Taxonomy as well, though I think my page on it has aged out to the 2nd page of G SERPs: https://tantek.com/w/TrollTaxonomy
#
[snarfed]
ah I was searching including your name 😆
#
[tantek]
I mean that should have only worked better to prioritize results from my domain 🤔
#
[snarfed]
I vaguely remember one with a taxonomy of common personality types who subvert the process in various ways, does that ring a bell?
#
[snarfed]
I know right
#
[tantek]
yeah that's in the Troll Taxonomy
#
[snarfed]
perfect, thanks
#
[tantek]
[KevinMarks]++ hadn't seen that before, and much nicer than Mark Pilgrim's categorizations (which I presume snarfed has seen)
#
Loqi
[KevinMarks] has 15 karma in this channel over the last year (52 in all channels)
mlncn joined the channel
#
barnaby
finally got all my old notes and mentions imported into my new site with no errors on any page 🎉
#
barnaby
next up are the articles, importing my likes from twitter, then getting micropub and webmentions working again
#
[snarfed]
requested my archive 4d ago, still not ready yet 🤷
#
[snarfed]
not important, but still
#
barnaby
yup, same
#
barnaby
hence the tweetdeck hacks for like extraction
#
[tantek]
barnaby++ good job on the /backfill !
#
Loqi
barnaby has 35 karma in this channel over the last year (53 in all channels)
#
[tantek]
backfill++
#
Loqi
backfill has 1 karma over the last year
#
[tantek]
barnaby, if you'd like to share your example or experience or tips, please feel free to add to /backfill
#
barnaby
I’ll link to examples when the imported likes are public, the new site is still in development locally at the moment
#
barnaby
I can add my tweetdeck js snippet to the wiki though in case it helps anyone
IWSlackGateway, [KevinMarks], [aciccarello], mlncn, [timothy_chambe], gRegor and [tw2113_Slack_] joined the channel
#
@aaronpk
↩️ Yeah sort of, if you don't want to DIY the whole thing your best bet is https://fed.brid.gy I linked to some other options depending on what you're looking for here https://aaronparecki.com/@aaronpk
(twitter.com/_/status/1593808713176842240)
#
aaronpk
These are the tweets that make me sad we didn't have more time to keep simplifying the protocol
#
@tmcw
can a blog be an activitypub server, so i don't have to do some rss->mastodon zapier hook or whatever, you could just follow a website directly in mastodon?
(twitter.com/_/status/1593799110280232961)
#
@bipedalprog
↩️ Been working on updating the website/weblog server. This webmention thing looks promising.
(twitter.com/_/status/1593824679487209472)
geoffo, tbbrown, [aciccarello], jjuran and [jeremycherfas] joined the channel
#
@tomcritchlow
@vgr Ha yeah strong brand alignment 🤣 (Though don't tell anyone that I dislike about 50% of the current indie web implementation - activitypub might be an evolutionary dead end)
(twitter.com/_/status/1593837739862282242)
slyduda1, mro, barnaby, jamietanna, gRegor and claudia1 joined the channel
claudia1 and mro joined the channel
#
h4kor[m]
The micropub.rocks test state that the authentication should be rejected if the token is provided in Header an Body (https://micropub.rocks/server-tests/805), but it looks like https://quill.p3k.io/new is sending the access token in both formats. Is there something I'm missing?
#
h4kor[m]
Hey, currently working on the server implementation of micropub.
barnaby and Dhalucario joined the channel
#
aaronpk
h4kor[m]: I need to update quill, it does that because some sites accept it in only one place so it sends in both
mro and barnaby joined the channel
#
@JamieTanna
↩️ Yes is the short answer - @aaronpk has been working on it and it seems like it takes a good chunk of time to do it right. I've been using https://fed.brid.gy to allow folks to follow my site at @www.jvt.me@www.jvt.me and I send webmentions to Bridgy… https://www.jvt.me/mf2/2022/11/vgscl/
(twitter.com/_/status/1593981315766157312)
#
@JamieTanna
↩️ Yes is the short answer - @aaronpk has been working on it and it seems like it takes a good chunk of time to do it right. I've been using https://fed.brid.gy to allow folks to follow my site at @www.jvt.me@www.jvt.me and I send webmentions to Bridgy… https://www.jvt.me/mf2/2022/11/vgscl/
(twitter.com/_/status/1593981315766157312)
[aaronpk] joined the channel
#
Loqi
barnaby has 36 karma in this channel over the last year (54 in all channels)
#
[schmarty]
barnaby++ congrats on the new site live! (according to your recent wiki edit)
#
barnaby
barnaby-- it’s not live yet! but thanks anyway ;)
#
Loqi
barnaby: You can't karma yourself!
#
barnaby
push it live is the last item in the “next up” category
#
[schmarty]
oh oops now i see that is in the "next up" section, sorry 😅
#
[schmarty]
curious what you replaced silex with 😄
#
barnaby
Slim. it was a pretty obvious replacement, especially once I got it working with PHP-DI
#
[schmarty]
til about php-di 👀
#
barnaby
I was always a bit skeptical of inversion-of-control DI, but it’s actually really great to work with
#
[schmarty]
i've been using League\Container
#
[schmarty]
haha! i like that php-di docs start immediately with autowiring 😁
#
barnaby
not used league/container but it looks like it does pretty much the same stuff
mro joined the channel
#
barnaby
php-di has a nice slim integration where it’ll inject dependencies into closure request handlers, so you get IOC dependency injection without having to make classes for absolutely everything
mro joined the channel
#
[schmarty]
nice to cut down on some boilerplate!
#
barnaby
yep! I like this approach of having every handler start out as a closure, and only “upgrading” groups of related handlers to a class when there’s a clear need for it
#
aaronpk
oops, i need to not send both a webmention and activitypub post when i reply to someone
#
[schmarty]
lol i did a double-take to make sure this was still actively developer after hitting this quote on their homepage: "[takes] advantages of all the latest features of PHP" (it then lists out 3 features each from php 5.4, 5.5, 5.6)
#
[schmarty]
actively developed*
#
[schmarty]
aaronpk: double-delivery of your response?
#
barnaby
ha ha yep it’s very active!
#
[schmarty]
does your site need to sniff that the post you're replying to is activitypub or not? 🤔
#
barnaby
who got a duplicate response? receivers deduping responses themselves is the more robust method, as in theory anyone can send a webmention for any page
#
aaronpk
it happened to someone here the other day, and just happened to me on my test wordpress site
#
[schmarty]
ah because the WP site supports both
#
aaronpk
this is tricky because both are done asynchronously
#
aaronpk
yep too hard for now nvm
#
[schmarty]
"the mentioned post accepts webmentions and is an ActivityPub object" is a weird case for sure!
#
barnaby
better to file an issue with whatever plugins are implementing the responses to get them to dedupe on their end
#
aaronpk
i could not send the activitypub post if i've successfully sent a webmention, but that means i have to totally change how my AP replies are sent
#
barnaby
ideally webmention vs AP should both end up with the receiver knowing that there is a response to their target at some source URL
#
aaronpk
but yeah they should be able to dedupe on the other end since the URL of the reply is the same from both
#
barnaby
so they can just compare the URL and see “yeah I’ve seen this already”
#
aaronpk
i guess that's a feature request for the wordpress activitypub plugin then
#
barnaby
I’d say so, yep. No idea how closely related it is to the webmention plugin, or how they could communicate between them, but hopefully there’s a solution
#
[schmarty]
pfefferle worked on both i think 😄
#
aaronpk
guess it depends on how the plugins store the URL
#
aaronpk
oh and actually this was a pingback not even a webmention 😂
#
barnaby
can’t believe that it blogs with active pingback implementations will likely outlive twitter
#
barnaby
added a 👍
#
aaronpk
hmm there's no source URL shown in the wordpress admin at all
#
barnaby
if the plugin can check for an existing response at the source URL on repeated webmentions/pingbacks, it must be stored somewhere
#
barnaby
and deduping between multiple WM/PB is effectively the same as deduping WM vs AP
#
barnaby
aaronpk: do you have any strong opinions about https://github.com/aaronpk/XRay/issues/116? if positive/neutral I might give it a go and send a PR
#
aaronpk
oops there isn't even a column in the wordpress DB for storing the URL of a comment
#
aaronpk
which makes sense for old school comments
#
barnaby
did old school pingbacks just add duplicate comments if you sent them more than once? 👀
#
aaronpk
it stored the post URL as the author URL
mro joined the channel
#
barnaby
I guess that makes sense as there was no good way of getting authorship information back then
mro joined the channel
#
aaronpk
next up i need to figure out how to recognize activities that mention me but are not from people i follow
#
aaronpk
oh shoot, i just realized mastodon's js;dr broke how i was handling replies
#
aaronpk
i had been recognizing the AP reply post but then just firing off a webmention for it
#
aaronpk
now i have to go actually write code to store AP replies internally
[pfefferle] joined the channel
#
[pfefferle]
[aaronpk] oh no 😂
#
[KevinMarks]
OK, so that's a concrete case to ask them to reinstate it
#
barnaby
yep I just saw simonw post their article about AP. good to see more implementations, hopefully this can nudge AP away from being “whatever mastodon decides to do”
#
barnaby
at least for all the under-specified details
#
aaronpk
Should we restart meetings at the W3C social CG to try to actually improve the standard and interop?
#
barnaby
if there are people motivated to do so? I don’t really feel like working on AP myself
mro joined the channel
#
barnaby
as I have no experience implementing it and hope to keep it that way with BF for as long as possible
#
aaronpk
oof now i remember why i shortcut this by converting to a webmention, there's a lot of bits and pieces to pull out
[iambismark] joined the channel
#
[snarfed]
The Multiple Domains Per Server section on that post is entertaining 😆
#
aaronpk
ah crap i have to handle photo responses too
#
aaronpk
ok i think i got that working, we'll see
#
barnaby
converting incoming AP messages to something resembling what XRay outputs?
#
aaronpk
actually skipping that step and inserting into my responses DB directly
mro joined the channel
#
[schmarty]
gRegor: found a maybe issue on indiebookclub.biz. when i sign in it tries to show a profile photo but the src URL is `Array` : `<img src="Array" alt="profile photo for" style="height: 1em;">`
#
barnaby
[snarfed]: is it possible with BF to have a single page listing people you follow, and sending BF a webmention whenever you update it? I’d much rather use a blogroll-type approach for managing BF follows than have a channel full of individual follow-of posts for each one
geoffo joined the channel
#
[snarfed]
barnaby yes! jamietanna added fragment support recently, https://github.com/snarfed/bridgy-fed/pull/292
#
Loqi
[jamietanna] #292 Allow providing a URL fragment for posts
#
barnaby
oh great! [snarfed]++ jamietanna++
#
Loqi
jamietanna has 5 karma in this channel over the last year (11 in all channels)
mro and [jamietanna] joined the channel
#
[jamietanna]
My site using it doesn't seem to work as my webmention sending doesn't submit the `source` as the fragment.
#
[jamietanna]
Not sure if it's fixable with setting the `u-url` in each fragment, or maybe changing the sending code
slyduda joined the channel
#
[snarfed]
Yeah you definitely need custom wm sending support, standard implementations won't put a fragment in source
mro and geoffo joined the channel
#
barnaby
-> continuing from #indieweb
#
barnaby
because if there’s no precedent or standard approach for fetching “fediverse posts” from their URLs, then how would a “fediverse post viewer” work?
#
barnaby
what are contacts
#
Loqi
contacts refers to a set of people, organizations, groups and anything else with one or more addresses (often URLs) for communication https://indieweb.org/contacts
#
[snarfed]
sknebel hmm. if I click the star icon on a post on https://mastodon.art/explore when logged out, I get a pop-up that still lets me type in my instance
#
barnaby
anyone who (semi-?)automatically manages a list of contacts on their site (say, from response contexts and incoming responses): how do you manage contact deduping and aliasing? do you do it at all, or treat, say waterpigs.co.uk and twitter.com/barnabywalters as two different identities?
#
aaronpk
barnaby: i have contact "posts" and i can add multiple URLs for each contact
#
aaronpk
speaking of which, i should add you
#
barnaby
aaronpk: so it’s managed manually? do you add/update any info automatically ever?
#
aaronpk
i don't update automatically, it's all manual
#
aaronpk
i can also add alternate nicknames, so when i type @barnaby in a post, it links to your site. and when that's syndiated to twitter it changes it to your twitter username
#
aaronpk
[snarfed]: this is what i see on mastodon.art https://media.aaronpk.com/2022/11/19120709-9919.png
#
barnaby
okay, got it. I’m currently trying to design my contact data model based on the ~1000 people I’ve interacted with in one way or another in the history of my website
#
[snarfed]
aaronpk right, same
#
barnaby
so I think either I drop most of that data into a separate moderation rule set (which I need anyway) and start fresh with a manually-managed contacts list
#
barnaby
or try to come up with some way of semi-automatically merging identities
#
aaronpk
[snarfed]: there's no "type in my instance" on that screen 🤔
#
barnaby
e.g. I have five aaronpks in my list
#
[snarfed]
Yes there is, bottom right. It's subtle, granted
#
aaronpk
are you seeing something different than i am seeing 😂
#
barnaby
yeah I see a link *to the post* which you’re prompted to copy/paste into your instance
#
barnaby
it’s a read-only field, not possible to write anything else into it!
#
[snarfed]
Oh God you're right, I misread it, sorry
#
[snarfed]
apologies!
#
[snarfed]
I'd love to see the discussion around that evolution of the remote follow/interact UI
geoffo, slyduda1 and gRegor joined the channel
#
[KevinMarks]
That was changed in 4.0 so you can probably find the discussion in github
[manton] joined the channel
#
[manton]
I should read that discussion because I was surprised by the 4.0 UI change here… First of all not prompting for the instance, but second of all having “Copy” use a URL instead of the username. I think it’s confusing for people to have to mix and match both usernames and URLs.
#
[manton]
I actually had to update Micro.blog this week to allow pasting in a Mastodon URL instead of just the username, so they both work.
#
[KevinMarks]
Which is why it should have been urls originally, but blaine had to break that acct--
#
Loqi
acct has -1 karma over the last year
#
barnaby
in the case we were discussing (remote interactions) it’s a link to a post which is being copied, not something which can be represented as an @-@ ID
#
gRegor
aaronpk, have you had a chance to check on the last indiewebify.me deploy? https://chat.indieweb.org/dev/2022-11-13#t1668378149664000
#
Loqi
[gRegor] For anyone familiar with how indiewebify.me deploys, I think the Composer dependences might not have updated with the last deploy. Discussion: https://github.com/indieweb/indiewebify-me/issues/109
mro and jonnybarnes joined the channel
#
gRegor
[schmarty], the array is because you contain multitudes, can't capture with just one photo. :)
#
gRegor
Checkin on it, haha
#
[schmarty]
I am legion
#
gRegor
[schmarty], Does your indieauth return info for profile scope? Otherwise it's falling back to representative h-card, maybe there's multiple photos and I just need to use the first one.
#
gRegor
ah, maybe I'm not handling the new mf2 photo value/alt structure!
#
gRegor
"new"
#
barnaby
mf-cleaner has functions for that now, in case you use it
#
gRegor
Yeah, looks like I use it, so probably something else
#
barnaby
if you were using getPlaintext to get photo properties before then the new version will handle img-alt just fine. If you were requiring ^0.1 you’ll need to change to ^0.2 though
#
gRegor
Aha, didn't realize there was 0.2
#
gRegor
Think I'm still on 0.1.4
#
barnaby
yup, I bumped the minimum PHP version to 7.3 and renamed master to main, which are breaking changes
#
barnaby
also the first update in 8 years, with several major new features, seemed like it deserved more than a patch bump
#
gRegor
Ooh it's hot off the presses, too
#
gRegor
Nice barnaby++
#
Loqi
barnaby has 37 karma in this channel over the last year (55 in all channels)
#
barnaby
yup, it’s a recent development
#
gRegor
Will try bumping that on indiewebify.me and redeploying. That might work because it was using dev-master before
#
barnaby
ah yes, if requiring dev-master even works at all any more then it’s permanently stuck at the last 0.1.x version
#
barnaby
dev-main would be required to get the dev version from now on
#
gRegor
[schmarty] can you try signing in again?
#
[schmarty]
Looks good!!
#
[schmarty]
gRegor++
#
Loqi
gRegor has 21 karma in this channel over the last year (76 in all channels)
geoffo joined the channel
#
Loqi
woot
#
IWDiscordRelay
<j​acky#7226> I'm thinking that I'd push people to _only_ set up their sites using metadata endpoints with Sele instead of the three (or two, excluding TicketAuth)
#
IWDiscordRelay
<j​acky#7226> I don't know for sure how many clients support it but I figure a means of nudging support would be by making it an option
#
IWDiscordRelay
<j​acky#7226> aaronpk: If you're down to restart it, I'd gleefully join
#
IWDiscordRelay
<j​acky#7226> I'd love to be more involved (the other committee I was a part of dissolved but it was nice)
#
gRegor
metadata endpoint on by default and an option to turn on the others for backcompat could be nice.
#
gRegor
With ibc, it's now nudging people if they don't have metadata endpoint to update, but will still work without it
#
gRegor
what is sele
#
Loqi
Sele is a IndieAuth provider (client and server) by Jacky Alciné https://indieweb.org/Sele
#
barnaby
anyone who has used URLs as identifiers in databases a lot: what sort of normalization do you do to them when querying?
mro joined the channel
#
barnaby
I’m experimenting with doing some usual URL normalization and then stripping the scheme off
#
barnaby
but would be interested in any real-world experiences with pros/cons of various approaches
#
IWDiscordRelay
<j​acky#7226> gregor: good point!
#
IWDiscordRelay
<j​acky#7226> barnaby: I keep the scheme to avoid any assumptions when fetching info over HTTP or HTTPS
#
IWDiscordRelay
<j​acky#7226> and I have a skeleton of a 'resource resolver' that leans on the scheme to know _how_ to get info (leaving it open to do things like resolving dweb-esque URLs and read into things like Tor)
#
barnaby
ah, interesting. in my case I’m always keeping the true URLs themselves in the raw data, but would be using the normalized versions for querying
#
barnaby
so I’d never fetch anything based on the normalized URL, they’re only for internal use
#
barnaby
and would mean that, say a http site sent me a webmention, then upgraded to https and updated their response, sending another webmention. I wouldn’t end up with duplicates and the update would be handled correctly(?)
#
barnaby
at least, correctly from a user-facing PoV
#
barnaby
I can’t think of a better method to avoid that sort of duplication without constantly re-fetching all sorts of stuff and checking the effective URL
#
barnaby
I suppose another method of normalizing URLs *internally for queries* without dropping scheme would be to normalize https to http, and assume that any site serving over https serves redirects over http, which might not apply the other way around
#
barnaby
that way there’s still at least a scheme, for differentiating content served other other schemes
#
barnaby
but I don’t currently see any need for the latter
#
IWDiscordRelay
<j​acky#7226> I agree, in that case, it wouldn't be much of a need
#
barnaby
and as the normalized URLs are only in the DB for querying, not the raw data, I can regenerate the DB whenever I want if I need to change it
#
barnaby
okay, so I’ll go with this for the moment and see if I run into any problems
#
barnaby
thanks jacky++
#
Loqi
jacky has 32 karma in this channel over the last year (83 in all channels)
geoffo joined the channel
#
barnaby
and I’m already using just the path segment of URLs to refer to local content internally for querying, so heavily normalizing URLs for external content isn’t so weird
#
IWDiscordRelay
<j​acky#7226> I've also cleaned up the dashboard a bit (and started playing with some simple styling)
#
IWDiscordRelay
<j​acky#7226> That page is def a js;dr one (as well as the request consent screen). Thinking about refactoring parts of it into Web Components and what not
#
gRegor
With webmentions, I use paths only for my URLs so I can accept a wm for http / https of the same URL. I redirect http to https, though I wouldn't assume that for incoming wms, so I use those URLs as-is
#
gRegor
I also create an md5 hash of the source+target URL and use that indexed column instead of source or target. I haven't looked at the implementation in quite a while, but it's been working pretty smoothly
#
barnaby
gRegor: I also used to store each individual source+target mention together, but am switching to a model where I have one record for each external piece of content, which can be a response to more than one of my URLs. Mostly to deal with the fact that a response can also be a mention, and I don’t want to end up with two records in that case
#
gRegor
Ah, interesting
#
barnaby
I’m also using the same table for reply/like/repost contexts, embeds, and potentially even an integrated feed reader if I can make it work
#
barnaby
to simplify everything. Say someone replies to one of my notes, mentioning me, and then I like their reply. Previously, the external piece of content would be stored three times in my site: once as a reply, once as a homepage mention and once as a like context
#
barnaby
and then potentially even more times in a reader
#
barnaby
so I’m trying to reduce that down to exactly one copy, which I can easily keep track of, update, version etc
#
[tantek]
aaronpk, could you upload that screenshot of the div pop-up thing saying "Favourite Mastodon • Art ... " etc. ? There's some very interesting UX copy there, as well as the suggested flow, and the suggested copy/paste option that seems very similar to the citation interface on the bottom of my posts