#dev 2022-12-26

2022-12-26 UTC
geoffo joined the channel
#
[tantek]
hmm, does Mastodon search of my permalinks really not work? https://twitter.com/StarrWulfe/status/1607119508434554880
#
@StarrWulfe
in reply to #TwitterMigration, first time? How do I interact with a post on your site if I haven’t followed from ActivityWeb yet since I can’t just stick the URL into my search bar in Mastodon…? https://tantek.com/2022/301/t1/twittermigration-bridgyfed-mastodon-indieweb
(twitter.com/_/status/1607119508434554880)
#
aaronpk
i think you need conneg on the URLs for that to work?
geoffo joined the channel
#
[snarfed]2
Copying and pasting post URLs across instances is a user space thing, so I doubt that
#
[snarfed]2
BF does have to redirect-wrap AS2 ids and urls for Mastodon interop, but searching for the wrapped URL https://fed.brid.gy/r/https://tantek.com/2022/301/t1/twittermigration-bridgyfed-mastodon-indieweb doesn't find it either
#
[snarfed]2
Oh or aaronpk do you mean that Mastodon instances only index for search if a URL serves connegged aAS2?
ben_thatmustbeme joined the channel
#
aaronpk
if you paste a URL that a mastodon instance has never seen into the search bar it will go fetch the URL
#
aaronpk
just confirmed by searching for a 2013 URL
#
aaronpk
look at this bananas accept header `"application/activity+json, application/ld+json; profile=\x22https://www.w3.org/ns/activitystreams\x22, text/html;q=0.1`
geoffo joined the channel
#
aaronpk
what is "profile" for and does anyone even consume that?
#
barnaby
looks like a JSON-LD-specific extension to the accept header? I found a couple of examples in specs, no idea if anything actually consumes it
#
barnaby
obligatory conneg--
#
Loqi
conneg has -16 karma in this channel over the last year (-19 in all channels)
#
barnaby
I wonder if mastodon itself responds specifically to requests for that content-type
#
barnaby
and whether requesting ls+json but with no profile or a different profile returns anything
#
barnaby
*ld+json
#
aaronpk
i think it only differs between html and json
mro joined the channel
#
[snarfed]2
Ah right. So if I serve connegged AS2 on those wrapped URLs, they might show up in Mastodon search
#
aaronpk
But people are going to try to paste the Tantek.com URL in search, not the bridgy wrapped URL
#
[snarfed]2
Yeah that I can't really do anything about
#
[snarfed]2
Unless there's some conneg proxy rel link I can stick into webfinger
#
barnaby
it might be possible to set up a redirect rule based on accept headers? so requests to tantek.com which look like they want JSON get redirected to bridgy?
#
aaronpk
oh yeah probably
#
barnaby
even if it’s just a janky regex or string comparison rule, realistically you only need to differentiate between wanting HTML and wanting JSON
#
barnaby
and maybe apache even has some conneg support which could be used
[aciccarello] joined the channel
#
[snarfed]2
Yes...but that's a much bigger ask of users
#
[snarfed]2
Also do 3xx redirects generally preserve headers? I assume so?
#
aaronpk
it's a step up, but you're already having people add other apache rewrite rules
#
aaronpk
you don't need it to preserve the header. you could have them redirect to an alternate bridgy url just for json
#
[snarfed]2
Simpler ones though, and for paths they're probably not already serving. Much lower risk/complexity
#
[snarfed]2
Yeah true
#
barnaby
yeah, I’d see this as an optional extra for people who want the extra functionality
#
aaronpk
yeah i don't know if this is actually a good plan, but it should be possible
#
[snarfed]2
Yup
#
barnaby
if it even works in the first place
gerben joined the channel
#
Loqi
[preview] [snarfed] #352 Make Mastodon index post URLs in its search
#
[tantek]
Thanks for looking into it [snarfed]++
#
Loqi
[snarfed] has 58 karma in this channel over the last year (102 in all channels)
#
[tantek]
could the individual post permalink pages provide a <link rel="alternate" type="application/activity+json" href="..." /> path to follow-your-nose discovery of that information instead? Or perhaps a LINK rel alternate HTTP header?
#
[snarfed]2
maybe? try it!
#
[tantek]
what should go in the href attr?
#
[snarfed]2
it already handles conneg, just not (yet) full Accept header parsing, so it’s not smart enough yet to handle Mastodon’s
#
[tantek]
it's a good question whether Mastodon or any other AS2 consumer will do rel-alternate discovery to find that
#
[snarfed]2
oh actually that’s probably not enough here. Mastodon will probably fetch it with its same Accept header, which BF will fail to parse
#
[snarfed]2
let me see if I can hack in proper parsing real fast
#
[tantek]
right, unless there's a .json URL or something to rel=alternate link to that doesn't require conneg
#
[snarfed]2
oh you could point it at granary’s url for converting your html to AS2
#
[snarfed]2
also this is a useful test, but asking users to modify their HTML site-wide is maybe even a bigger ask than asking them for site-wide conneg redirects 🤷
#
[tantek]
right, which is why I suggested a possible HTTP LINK rel header instead
#
[tantek]
not sure if that could be done with .htaccess
#
[tantek]
or we solve the problem from other side, where if HTML is returned by the conneg request, the consuming code sends it through an mf2 parser and then ... ?
#
[snarfed]2
ahhh right sorry I missed the header part
gerben joined the channel
#
[snarfed]2
ok BF redirect URLs now handle Mastodon conneg properly
#
[snarfed]2
Mastodon search still doesn’t show anything for eg https://fed.brid.gy/r/https://tantek.com/2022/301/t1/twittermigration-bridgyfed-mastodon-indieweb though 🤷
#
aaronpk
heh i think it needs to be the Note not the Create
#
[snarfed]2
? that url is in the Note object’s id and url fields
#
M0x3b0b[m]
I'm mildly tickled by seeing the person who replied to my introduction post to talk about the fact that I planned on Fediverse/Indieweb "dual citizenship" because he wanted to do the same thing...already jumping ahead of me already on some of the same stuff I'm planning to try to get hashed out over the course of the next week.
#
[snarfed]2
M0x3b0b++
#
Loqi
M0x3b0b has 1 karma over the last year
#
[tantek]
dual citizenship, interesting metaphor 🤔
#
aaronpk
[snarfed] i dunno for sure, but my AP JSON is just the Note, not the Create that wraps the Note
#
[snarfed]2
seems maybe more like syndication to a silo account, vs EU’s right of free movement maybe closer to IndieWeb + BF into the fediverse
#
[snarfed]2
backs away slowly
#
[snarfed]2
aaronpk oh! I see what you mean. yeah you’re definitely right
#
M0x3b0b[m]
"dual citizen" just popped to mind because I think I've come across references to being a "citizen" of both, so...it seemed logical. I think I'd referred to it before as being bilingual. But I'm tossing terms around that amuse me more than I'm proposing that any of it is a solid analogy.
#
[snarfed]2
aaronpk++ winner winner chicken dinner, that did it!
#
Loqi
aaronpk has 35 karma in this channel over the last year (108 in all channels)
#
[snarfed]2
not really useful for UX though, since it’s only https://fed.brid.gy/r/… URLs, but it’s something
#
aaronpk
it's a step in the right direction, and seems easy enough why not
#
[snarfed]2
yup
#
[tantek]
small steps
mro, tiim, barnaby and [jamietanna] joined the channel
#
[jamietanna]
Is there a way to follow a Mastodon account using Granary as-is, like if you wanted to add the URL to a social reader instead of following in Bridgy Fed? (also happy with this but looking at following more quietly as an option)
#
Loqi
[jamietanna]: gRegor left you a message 2 days, 13 hours ago: I tried to deduce your earliest displayed RSVP here based on your own RSVP posts, feel free to update if that's not correct! https://indieweb.org/rsvps#Jamie_Tanna
#
sknebel
you can follow the rss feed
#
[jamietanna]
sknebel I've found that some folks I've been following haven't been updating since the 4.0 Mastodon release
#
[jamietanna]
Thanks gRegor, saw that the other day but not had the chance yet to confirm, appreciate you doing the hard work to check!
mro, aaronpk and lamantine joined the channel
#
[schmarty]
I had issues with some RSS feeds from Mastodon folks seem to stop updating in aperture even though I could see they had been actively posting. Just switched over to following my Bridgy Fed feed after all 😅
mro, j12t, geoffo, mro_, gxt, [ggirelli], lamantine, njmm and tiim joined the channel
barnaby and geoffo joined the channel
#
[fluffy]
I wonder how that post ended up here and how many people see that as a lottery scam.
#
[fluffy]
(I assume it’s because of the username with _webmention in it)
#
[jamietanna]
Snarfed do we support Moves from Bridgy Fed? https://fed.brid.gy/user/www.jvt.me isn't showing a move from https://social.lol/@carol that should've appeared earlier from https://mastodon.social/@carolgilabert
#
[snarfed]2
[jamietanna] no, BF doesn’t currently do Mastodon account moves. they’re not well standardized or documented, they use a Move activity that isn’t in either the AS2 or AP specs. https://docs.joinmastodon.org/spec/activitypub/#supported-activities-for-profiles
#
[snarfed]2
[manton] has researched them more than me, https://www.manton.org/2022/12/02/moving-from-mastodon.html
#
Loqi
[preview] [Manton Reece] Moving from Mastodon to a new instance or to Micro.blog
#
[snarfed]2
oh sorry I misspoke, Move is in the AS2 vocab spec, briefly. https://www.w3.org/TR/activitystreams-vocabulary/#dfn-move
#
[snarfed]2
feel free to file an issue!
#
[jamietanna]
Ah gotcha thanks. Is it possible to surface it in the UI as a warning / log message? Would be handy being able to check what moves I've been notified about
#
Loqi
[preview] [snarfed] #330 Add account migration (Move) support
#
[jamietanna]
Could this also be affecting a Moved account trying to follow me again?
#
[snarfed]2
hmm! I wouldn’t expect so, but maybe it’s possible
#
[jamietanna]
Carol's re-followed me from the Masto UI but doesn't seem to have worked as I've not received a Follow webmention 🤷‍♂️
#
[snarfed]2
hmm ok! have to run but feel free to look for a failed follow in https://fed.brid.gy/user/www.jvt.me
#
[snarfed]2
I can look in logs if it’s not there
#
GWG
Just came up with a slightly different practice for deriving name from a rel=author. How likely is it that the text value of a rel=author link is the actual author name?
#
[jamietanna]
Thanks [snarfed] looks like they're blocked in the UI by "already sent a follow request" so can't send any new follows
#
[jamietanna]
(and so new logs appear)
[manton] joined the channel
#
[manton]
[snarfed] The “move” in AS2 isn’t very helpful anyway, because it only describes moving a post, not an account.
#
[manton]
Another maybe-not-documented thing I’ve been looking into is Mastodon polls in ActivityPub. I just want to support them enough so that if someone you’re following posts a poll, it does _something_ to show it, even if you can’t submit a poll answer.
#
[manton]
Oh, actually looks like “question” is in AS2. So it is documented. 👍
#
[tantek]
what is a poll
#
Loqi
A poll is a post type that facilitates responses to be aggregated into a final set of votes, usually offering between two and four options from which users can choose https://indieweb.org/poll
#
[tantek]
[manton] may be worth adding Mastodon polls to that page ^ as well as the kind of partial support you’re thinking of (at least show it)
#
[manton]
Good idea, I can do that later.
#
[manton]
Personally I’ve never felt the need to add polls to my blog. I don’t think every social media platform needs them, just like not everything needs it’s own DM system.
#
starrwulfe[m]
For whoever’s out there:
#
starrwulfe[m]
/Now — About to see if I can post something to Instagram and have jlg.micro.blog suck it up thru Bridgy…. Or is that s’posed to go the other way around?!? Guess I’ll find out in a second…
#
[jamietanna]
Has anyone got their Bridgy Fed username available to https://fedifinder.glitch.me/ ? Seems to show as "no handle found" in bio, when I've added it. Maybe the regex doesn't handle `.` s?
#
[jamietanna]
I see https://twitter.com/schmarty picked up correctly with `@marty@`
#
starrwulfe[m]
OK, I must be missing something… I know I can’t publish something to Instagram directly via Bridgy, but I have a hacky way I can do this with IFTTT.
#
starrwulfe[m]
What needs to be present on Instagram for the Bridgy extension to pull comments back to my site?
jeremycherfas joined the channel
#
[snarfed]2
starrwulfe either your IG post needs to link to your web site post, or your web site post needs to link to your IG post with u-syndication (or rel-syndication): https://brid.gy/about#missing
#
starrwulfe[m]
[snarfed]2: so this means just a link within the IG post like this one:
#
[tantek]
worth reading for perspectives on OSS projects and sustainable funding etc. https://matrix.org/blog/2022/12/25/the-matrix-holiday-update-2022/
#
[snarfed]2
starrwulfe yup. looks like you edited that IG post to add the link? now you can wait for the extension to poll again later, or you can manually trigger it on its preferences page
#
[snarfed]2
also micro.blog is a bit particular about how it accepts Bridgy webmentions. I know [manton] had to do something special for Twitter, I don’t know how/whether it supports Instagram yet
#
starrwulfe[m]
[snarfed]2: yep, that’s exactly what I was thinking myself — but my Bridgy simply said “no webmention” targets all over the place so I assumed I didn’t do something right.
[iambismark] joined the channel
#
[snarfed]2
micro.blog has a wm endpoint, so Bridgy will still send ok. looks like it hasn’t gotten to that point yet here
#
starrwulfe[m]
I think there’s a sub layer of URLs that microblog uses in addition to the pretty links we all get when creating a post; I wish there were some way [manton] could let me expose that URL as a shortURL for tools like this; would allow me to do some interesting things in IFTTT and Zapier maybe
#
starrwulfe[m]
If I post a picture to Instagram, it also fires off an IFTTT action to post as a native twitter tweet with the full pic and caption. I don’t know if Bridgy can expand twitter’s short URLs to pick up the original links if I go the other way…
#
[manton]
I don’t think Instagram webmentions to Micro.blog will work… I can look into that. Basically Micro.blog needs special support to map silo users to Micro.blog usernames.
#
starrwulfe[m]
[manton]: even if they’re working for Twitter? (Or that may have been because I was manually doing the Bridgy stuff in the theme I used at first…)