#dev 2023-03-05

2023-03-05 UTC
#
aaronpk
Aren't the Delete activities still signed?
[snarfed] joined the channel
#
[snarfed]
rogue actors can send you any traffic you can think of, the internet is the wild west, but in practice the traffic you get is fairly predictable
#
aaronpk
ah right, they are signed, so as long as you've seen the key before, you can validate the Delete. if you haven't seen the key before, you can't validate it, but then you don't need to because you have nothing to delete because you've never seen it before
#
prologic
its a good idea actually
#
prologic
any advice on how I'm going to translate replies to/from Yarn/AP and have interop for threading?
#
prologic
Yarn uses content-addressing (Twt Hash), AP uses inReplyTo (urls)
#
[tantek]
[snarfed], this "it's possible Mastodon is promiscuous and advertises deletes everywhere just to be extra sure" sounds like a recipe for DDoS as the network grows
#
prologic
isn't it already suffering from that?
#
prologic
Umm in testing with Mastodon instnaces I've found that mentions won't work properly
#
prologic
Where in any docs or specs that it require the actual content of a note to use micro formats for proper mentions?
#
[snarfed]
As usual for Mastodon interop, first look in https://docs.joinmastodon.org/spec/activitypub/
#
prologic
Does this mean every AP author follows the Mastodon spec for mentions
#
prologic
or the AP spec?
#
prologic
This is confusing :)
#
prologic
I thought it would be enough to have @user@domain in the content and tag: ojects as per the AP spec
#
prologic
but no :(
#
[snarfed]
🤷‍♂️
#
aaronpk
now i wonder if my mentions work properly, i don't know if i've ever actually checked
#
[snarfed]
(I did say _for Mastodon interop_ 😁)
#
[tantek]
I'm auto-linking my @-@s and if that's not good enough for Masto-mentions then too bad, Masto can fix that
#
[tantek]
I don't really care to do extra work for that
#
[tantek]
now clickable hashtags OTOH...
#
aaronpk
well, properly done mentions means the difference between the person seeing it in their notifications tab or not
#
[tantek]
I'm ok with not spamming people's notifications tab
#
[tantek]
as soon as their server starts accepting Webmentions, mine will send them automatically when I update the post
#
prologic
problem with not doing this properly is people complain :)
#
[tantek]
how can they complain if they are not getting notifications they don't know about?
#
prologic
LOL
#
prologic
Ahh but they are see
#
prologic
Because that side of things works by looking at the tag objects
#
prologic
not the f'n content :(
#
prologic
We had to go and make (not we, Mastodon? :D) content HTML then shove in Micro Formats for god measure 🤦‍♂️
#
[tantek]
presumably you mean some extra JSON properties. I don't think microformats are involved in this at all
gerben joined the channel
#
prologic
well micro formats are used in the content that's for sure
#
prologic
by both GTS instances and Mastodon
#
prologic
You're right, they have no bearing on how the notification gets into your "notifications tab"
#
prologic
But they do affect the behaviour (UX) of clients when clicking on said links or how they're rendered :(
#
aaronpk
"micro formats" or "Microformats"?
#
prologic
not sure how you spell it :)
#
prologic
probably the later?
#
[tantek]
Or perhaps you mean microsyntax
#
[tantek]
What is microsyntax
#
Loqi
microsyntax refers to short text conventions for conveying specific semantic meaning, such as an "@" prefix indicating a (user)name, or "#" prefix indicating a hashtag (both conventions popularized by Twitter) https://indieweb.org/microsyntax
#
aaronpk
better
#
prologic
No, I mean Microformats
#
prologic
like: "content": "<p><p>Hey <span><a href=\"https://gts.mills.io/users/prologic\" target=\"_blank\" rel=\"nofollow noopener\">@<span>prologic</span></a></span> 👋</p>\n</p>",
#
prologic
Is that Microformats?
#
[tantek]
That looks like a mf2json parsed e-content property
[schmarty] joined the channel
#
prologic
Yup
#
prologic
This is what I'm seeing everywhere and what most clients and Ap implementations are doing
#
aaronpk
i'm pretty sure the content of the HTML value is not significant to mastodon's processing
#
prologic
but it is to its UI
#
prologic
man dealing with things that could be a single value or an array of values is a reall pain :(
#
[tantek]
painful reality is better than simpler but false assumptions
#
[tantek]
as developers dealing with real world content, and the future malleability of information schema, that is the way
#
prologic
I wish it was just more strict :)
#
[tantek]
nah, you really don't, because that would mean more strictness on the real world, which tends to be bad path to go down
#
prologic
I think I have a pretty good way (in code) to deal with this now: https://git.mills.io/yarnsocial/yarn/commit/e983fecda9a672ecce44cf3663cc1b894ed06428
#
prologic
yeaht its okay I mean it just makes more work for me :)
#
prologic
cost of strictness, harder to adopt by developers
#
prologic
cost of flexibility, harder to develop against
#
prologic
:D
#
prologic
trade-offs huh :)
#
prologic
Alrighty, that took me all day, but mentions are now working very nicely (finally)
#
prologic
I really don't know how I'm going to do threading interop though :)
#
[tantek]
threading interop like reply chains?
#
prologic
yup
#
prologic
both ways too, which is gonna be tricky
#
prologic
one side (Yarn) uses content addressing (hashes)
#
prologic
the other side (AP/Mastodon/etc) uses URIs
gxt__ joined the channel
#
prologic
So how do you get AP actors to form long chains of threads?
#
prologic
is there another attribute besides inReplyTo ?
#
prologic
turns out adding threading isn't so hard
#
prologic
there's only one more case left I think
#
prologic
which is to figure out a way to tract actor notes and hash them so we can do a translation in that direction
#
prologic
I can't quite work out what Mastodon is doing here ;)
#
prologic
Yarn supports Relying and Forking, I _think_ Mastodon only supports the later?
#
prologic
Not sure :)
bterry joined the channel
#
prologic
it would appear that Mastodon and Activity Pub in general only knows how to do one kind of thread
#
prologic
which we (Yarn.social) called forking
geoffo joined the channel
#
IWDiscordRelay
<c​apjamesg#4492> I'm working on a hosted Trackback Endpoint: https://github.com/capjamesg/trackback-server
#
Loqi
[preview] [capjamesg] trackback-server: A server to receive Trackbacks.
#
[KevinMarks]
Replying is threaded, forking is going back to the root? Like a quote tweet as fork?
mro and geoffo joined the channel
#
Loqi
[preview] [ClearlyClaire] #23913 Add support for incoming rich text
#
[snarfed]
I'm kinda shocked at how little that got bikeshedded
#
[snarfed]
(bikeshod?)
[manton] joined the channel
#
[manton]
Glad to see that change. At the very least, it was weird that bold and italics didn’t come through.
#
[KevinMarks]
I can nitpick <del> rather than <s> (as <del> belongs with <ins>) but a good sign. Maybe we can lobby for <sub> and <sup> too
gerben, mro, geoffo and [tw2113_Slack_] joined the channel
#
[tantek]
what is sanitize
#
Loqi
sanitize, specifically "sanitizing HTML", "sanitizing for (display inside) HTML", or "sanitization" is a common operation performed by any site which displays content from external sources, including user entry https://indieweb.org/sanitize
#
IWDiscordRelay
<c​apjamesg#4492> What is sanitise?
#
IWDiscordRelay
<c​apjamesg#4492> https://indieweb.org/sanitise
#
IWDiscordRelay
<c​apjamesg#4492> sanitise is /sanitize
[capjamesg] joined the channel
#
[capjamesg]
What is sanitise?
#
Loqi
It looks like we don't have a page for "sanitise" yet. Would you like to create it? (Or just say "sanitise is ____", a sentence describing the term)
#
[capjamesg]
what is sanitise
#
Loqi
It looks like we don't have a page for "sanitise" yet. Would you like to create it? (Or just say "sanitise is ____", a sentence describing the term)
#
[capjamesg]
Why thank you!
#
[tantek]
This (currently) last comment on that PR makes a good point: https://github.com/mastodon/mastodon/pull/23913#issuecomment-1455180785
#
[tantek]
hmm I thought Loqi extracted those
#
[tantek]
> HTML is accessible for screen readers but text formatting like pure Markdown isn't (if it is not converted to HTML first).
#
[tantek]
> People are misusing Markdown-like formatting by plastering messages with `*something*` and `_something_`, and bullet lists etc. and it is not accessible for screen readers. There are complaints from screen reader users about Markdown-like plain text formatting.
#
[tantek]
> HTML should be the choice for formatting in Mastodon for accesibility reasons.
#
[tantek]
Once this update is deployed to enough Mastodon servers, I may have to add a bunch more auto-markup code to handle creating lists and such
#
[tantek]
too bad they didn't include dl, dt, dd tho
#
aaronpk
hmm is Loqi slacking on the job again
#
IWDiscordRelay
<c​apjamesg#4492> aaronpk Loqi was a bit slow for me.
#
IWDiscordRelay
<c​apjamesg#4492> hands Loqi a cookie
#
IWDiscordRelay
<c​apjamesg#4492> What do blue dinosaurs eat?
#
[tantek]
gives Loqi a GitHub comment link
#
Loqi
steps on the GitHub comment link
mro and jonnybarnes joined the channel
#
IWDiscordRelay
<c​apjamesg#4492> Eek.
[kimberlyhirsh], [snarfed], jonnybarnes, sp1ff, wagle, klez_, Kaja, saptaks, sivoais, oxtyped, [snarfed]1, mro, gxt__, sugoi, geoffo, IWSlackGateway, [KevinMarks] and [capjamesg] joined the channel