RetroLemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Rimu@piefed.social to ActivityPub@community.nodebb.orgEnglish · 2 months ago

Protocol handler?

message-square
message-square
15
link
fedilink
1
message-square

Protocol handler?

Rimu@piefed.social to ActivityPub@community.nodebb.orgEnglish · 2 months ago
message-square
15
link
fedilink

I’m going to register a protocol handler, so links to anywhere on the fedi will be opened in the user’s home instance.

https://developer.mozilla.org/en-US/docs/Web/API/Navigator/registerProtocolHandler

Has anyone already done this and if so what was the prefix you used? We might as well all use the same thing. I’m thinking web+fedi.

alert-triangle
You must log in or # to comment.
  • mimic_kry@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    Too soo-…wait what fucking year is it

  • julian@community.nodebb.org
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    rimu@piefed.social interesting idea… I know Evan has some thoughts about this as part of his ActivityPub HTML discovery project

    https://swicg.github.io/activitypub-html-discovery/

    I am not sure why they did not settle on protocol handlers but I’ve tagged him for comment

    evan@activitypub.space evan@cosocial.ca

    • julian@community.nodebb.org
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      The concept sounds excellent, although there is fairly limited mobile support.

      Since NodeBB is an installable PWA it would be definitely nice to have it supported there as well.

  • Evan Prodromou@cosocial.ca
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    @rimu web+acct

    • Die4EverA
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      What does acct stand for?

      • Rimu@piefed.socialOP
        link
        fedilink
        English
        arrow-up
        2
        ·
        2 months ago

        Maybe similar to webfinger, which uses acct. That’s for people / Actors, the solution I’m seeking would work for posts, comments, communities and people.

      • Marcus Rohrmoser 🌻@digitalcourage.social
        link
        fedilink
        arrow-up
        2
        ·
        2 months ago

        Hi @Die4Ever @evan,
        it stands for this https://www.rfc-editor.org/rfc/rfc7565.html #URI scheme. #RFC7565

        In #webfinger https://www.rfc-editor.org/rfc/rfc7033 handles, namely. #RFC7033

      • Evan Prodromou@cosocial.ca
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        @Die4Ever

        https://datatracker.ietf.org/doc/html/rfc7565

  • Die4EverA
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 months ago

    It’s a good idea, but web+fedi or web+activitypub is maybe too broad to be useful? I wouldn’t want a Lemmy post to open in Mastodon, and pretty sure opening a Mastodon post in Lemmy is impossible unless the post was directed to a community.

    web+threadiverse could solve that issue but that’s kinda hacky. Too bad (AFAIK) they can’t be stacked like web+fedi+threadiverse with some kind of priority system.

    There was a discussion about this for Lemmy but it was never implemented https://github.com/LemmyNet/lemmy-ui/issues/3031

    Maybe the real solution is to improve Lemmy and Mastodon so that they are capable of doing these things decently.

    I was actually thinking of making a browser extension that handles this instead. Each Fediverse software could write something to window.fediverse or something like that, with tags for threadiverse, group support, micro blogging, etc. The extension could have methods to infer these values for existing platforms. But the extension could give a dialog box to redirect, based on your preferred instances for certain tags.

    • Rimu@piefed.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Yes an extension might be the only way to get something happening on mobile browsers.

      It would be helpful if there was a convention for what endpoint to call to ask an instance to convert a url to it’s local equivalent, to replace what navigator.registerProtocolHandler does. Otherwise you’d have to hardcode it for each platform.

      On the other hand, most mobile fedi usage would be using an app, not browser. Couldn’t app devs hardcode something?

  • silverpill@mitra.social
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    @rimu

    web+ap, which was proposed by Fedilink authors. To my knowledge, it is the most widely adopted proposal

    https://web.archive.org/web/20250402041648/https://fedilinks.org/

    (the main site seems to be offline now)

    cc @SoniEx2

    • julian@community.nodebb.org
      link
      fedilink
      arrow-up
      1
      ·
      2 months ago

      Are there implementors of web+ap? I’d be interested in adopting.

      I assume the fallback behaviour is to just assume https?

      • silverpill@mitra.social
        link
        fedilink
        arrow-up
        1
        ·
        2 months ago

        @julian Fedilinks website lists 3 MastoAPI clients, but the list is incomplete. I saw Fedilinks being mentioned in changelogs of other clients too.

        There was also an Akkoma PR, it was closed by the author: https://akkoma.dev/AkkomaGang/akkoma/pulls/589. I don’t quite understand the reasoning, perhaps @smitten could clarify.

        • julian@community.nodebb.org
          link
          fedilink
          arrow-up
          1
          ·
          2 months ago

          The PR comments suggest that making the various changes to the backend were too large to justify, and a front-end only approach would be preferred? smitten@key.portend.place

          It raises a good point though, where if you serve web+ap://, it’s not understood by clients that are not aware of this scheme. If there were a way a client could communicate whether there is a protocol handler registered, then the server could tailor its response.

  • evan@activitypub.space
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    rimu@piefed.social I’ve been using web+acct for the acct URI format.

    https://en.wikipedia.org/wiki/Acct_URI_scheme

ActivityPub@community.nodebb.org

activitypub@community.nodebb.org

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !activitypub@community.nodebb.org

Focused discussion related to ActivityPub integration in NodeBB

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 44 users / 6 months
  • 1 local subscriber
  • 0 subscribers
  • 32 Posts
  • 241 Comments
  • Modlog
  • mods:
  • BE: 0.19.13
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org