Thoughts on federated actions

Earlier today I tested an idea where using both an HTTP redirect’s Location header and a Refresh header, one could potentially use the Location header as a primary destination to try and the Refresh header as a secondary destination. The idea is that this would solve the Fediverse’s biggest pain point: cross-instance interactions.

Neither Firefox nor Chrome make any attempt to load the Refresh header’s page in the background (or at all).

I attempted a method involving JavaScript and iframes, and it didn’t work. On Firefox, it asked permission to follow the link, which is mildly inconvenient, but then skips opening it in the browser and tries opening it on the system anyway. I did not test this in Chrome.

Web Intents

Paul Kinlan worked on Web Intents at Chrome, which didn’t last very long because it was overly Android oriented (and didn’t work on Android). Maybe a different approach to the same idea could be of benefit.

A revived version of Web Intents could include:

Other points that don’t quite fit in a good spot above:

Web Follow

I noticed when writing this post that Kinlan also wrote about a different way to use a custom protocol handler and a refresh header to accomplish this. I’ll propose a wider approach based on that one:

web+activity://fosstodon.org/users/blake?activity=Follow
web+activity:?activity=Create&type=Note&content=Earlier%20today%20I%20tested%20an%20idea...
web+activity://fosstodon.org/users/blake/statuses/108346645545391550?activity=Announce

This is built upon ActivityPub to cause a server to prepare to perform a given Activity, with the rest going wherever makes sense (for most things, it’s going to be target.) Ideally, it’ll ask for confirmation before performing the action, in order to prevent forced follows.

Using the Referer header might help here to show what domain the request came from, so you can just click to act there from then on, using 204 No Content as a confirmation.

The basic format is this.

This version may be best done with JavaScript buttons and/or a popup-page follow link.

You may submit your thoughts to this post on Fosstodon.