Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve follow flow with custom web protocols (web+follow:username@host.tld) #14187

Open
pfefferle opened this issue Jun 30, 2020 · 8 comments
Open
Labels
suggestion Feature suggestion

Comments

@pfefferle
Copy link

pfefferle commented Jun 30, 2020

Pitch

In 2010 Mozilla wrote an article "RegisterProtocolHandler Enhancing the Federated Web".

The idea is to register a protocol handler when logged into a mastodon account:

if (typeof navigator.registerProtocolHandler === "function") {
    navigator.registerProtocolHandler("web+follow", "https://mastodon.social/authorize_interaction?uri=%s", "Follow");
}

On the profile pages, the follow button could look like:

<!-- check if browser support registerProtocolHandler -->
<a href="web+follow:username@host.tld">Follow</a>

RegisterProtocolHandler is supported by most modern browsers (except Safari but maybe Mastodon could change this). If there is a check, it should not break anything.

Motivation

Improve the "decentralized follow" flow, to feel more like a classic silo (twitter, facebook) follow.

@ClearlyClaire
Copy link
Contributor

We used to register protocol handlers but stopped doing that because of a combination of it not being actually used much, and browser's UI being off-putting: #8127

@pfefferle
Copy link
Author

Oh, so sad. I think it is Hen/Egg problem. If there is no service using it, I think it will not improve.

@SuperSandro2000
Copy link
Contributor

This should be re-added but not after 5 minutes but with a button at a good place.

@SoniEx2
Copy link

SoniEx2 commented Jul 6, 2020

👍 to having a button in a good place. I'd put it under preferences.

however, a bigger issue is that websites can't just provide a fallback handler like they can provide base URLs for anchors. see also whatwg/html#4584

@pfefferle
Copy link
Author

@SoniEx2 you are right... the implementation is far from perfect, but I think a platform like mastodon (or the complete fediverse) would (hopefully) give some importance to the custom protocol handler and would help to improve the spec and the current browser implementations.

...but I would recommend to not use web+mastodon: ...it would be awesome to have a generic "follow" button for the fediverse! 😍

@SoniEx2
Copy link

SoniEx2 commented Jul 6, 2020

yeah. web+activitypub: would be nice, I think.

@DarkArc
Copy link

DarkArc commented Nov 22, 2022

I've added a suggestion on the Mozilla side for first party activitypub://foo@bar.com URL protocol handler support:

https://connect.mozilla.org/t5/ideas/add-user-friendly-first-party-activitypub-handle-support/idi-p/19622

@SoniEx2
Copy link

SoniEx2 commented Nov 22, 2022

see also #19613

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

6 participants