Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. It’s really surprising to me that the #fediverse hasn’t agreed on a standardized way to open cross-instance #activitypub objects and instead relies on links that open in the browser.

It’s really surprising to me that the #fediverse hasn’t agreed on a standardized way to open cross-instance #activitypub objects and instead relies on links that open in the browser.

Scheduled Pinned Locked Moved Uncategorized
fediverseactivitypuburischeme
116 Posts 12 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • trwnh@mastodon.socialT This user is from outside of this forum
    trwnh@mastodon.socialT This user is from outside of this forum
    trwnh@mastodon.social
    wrote last edited by
    #20

    @rimu@mastodon.nzoss.nz @ricferrer @julian @rimu@piefed.social @evan this is the way for web frontends, which are effectively "browsers in browsers". 👍

    if you are starting with a link in your "level 1" web browser, you need to copy it into your "level 2" web browser. https://www.devever.net/~hl/webappcoupling

    1 Reply Last reply
    0
    • ricferrer@mastodon.socialR ricferrer@mastodon.social

      @trwnh @evan @julian @rimu while this is true now, it was an evolution. As you probably know, the ht in html and http stands for HyperText, the fundamental concept that enabled websites in the early 90s

      The question is what is more realistic for wide adoption… that all browsers start recognizing activities and decide if rendering in a viewer inside the browser or redirecting outside to an app makes sense.

      trwnh@mastodon.socialT This user is from outside of this forum
      trwnh@mastodon.socialT This user is from outside of this forum
      trwnh@mastodon.social
      wrote last edited by
      #21

      @ricferrer @evan @julian @rimu any browser right now can recognize, or should be able to recognize, that the http response it got is "content-type: application/activity+json" and then open it in your system's configured activity+json processor, like a PDF or PNG or anything else.

      i think it's not realistic to fork the entire namespace of http resources based on content-type. it was bad enough that https: was different from http: and we are still dealing with the repercussions of that move today

      trwnh@mastodon.socialT ricferrer@mastodon.socialR 2 Replies Last reply
      0
      • ricferrer@mastodon.socialR ricferrer@mastodon.social

        @trwnh @evan @julian @rimu while this is true now, it was an evolution. As you probably know, the ht in html and http stands for HyperText, the fundamental concept that enabled websites in the early 90s

        The question is what is more realistic for wide adoption… that all browsers start recognizing activities and decide if rendering in a viewer inside the browser or redirecting outside to an app makes sense.

        ricferrer@mastodon.socialR This user is from outside of this forum
        ricferrer@mastodon.socialR This user is from outside of this forum
        ricferrer@mastodon.social
        wrote last edited by
        #22

        @trwnh @evan @julian @rimu

        I think the biggest difference with pdfs, mp4 in your example and an activity is that I most likely want to interact with an activitypub object: either follow, repost/announce, etc for this to work I need to be logged in. So is the solution to include an activitypub client in the browser? Use an external viewer that intercepts through browser extensions?

        Now even the experience inside mastodon sometimes opens a webview 🤷🏻‍♂️

        trwnh@mastodon.socialT benpate@mastodon.socialB django@social.coopD 3 Replies Last reply
        0
        • trwnh@mastodon.socialT trwnh@mastodon.social

          @ricferrer @evan @julian @rimu any browser right now can recognize, or should be able to recognize, that the http response it got is "content-type: application/activity+json" and then open it in your system's configured activity+json processor, like a PDF or PNG or anything else.

          i think it's not realistic to fork the entire namespace of http resources based on content-type. it was bad enough that https: was different from http: and we are still dealing with the repercussions of that move today

          trwnh@mastodon.socialT This user is from outside of this forum
          trwnh@mastodon.socialT This user is from outside of this forum
          trwnh@mastodon.social
          wrote last edited by
          #23

          @ricferrer @evan @julian @rimu if we say that every resource needs *two* identifiers, one to open in a "https" browser and one to open in a "fedi" browser, then why? what happens if someone copies the "fedi" uri outside of the "fedi" context, and the other person doesn't have a "fedi" uri handler on their system? that link becomes useless. not everyone is going to know to copy the "correct" link, or that the "incorrect" link can be rewritten.

          trwnh@mastodon.socialT 1 Reply Last reply
          0
          • trwnh@mastodon.socialT trwnh@mastodon.social

            @ricferrer @evan @julian @rimu if we say that every resource needs *two* identifiers, one to open in a "https" browser and one to open in a "fedi" browser, then why? what happens if someone copies the "fedi" uri outside of the "fedi" context, and the other person doesn't have a "fedi" uri handler on their system? that link becomes useless. not everyone is going to know to copy the "correct" link, or that the "incorrect" link can be rewritten.

            trwnh@mastodon.socialT This user is from outside of this forum
            trwnh@mastodon.socialT This user is from outside of this forum
            trwnh@mastodon.social
            wrote last edited by
            #24

            @ricferrer @evan @julian @rimu which is more realistic: that literally every application in the world need to start recognizing "fedi" links, or that existing fedi applications start opening https: links locally ("in-app") where possible?

            1 Reply Last reply
            0
            • ricferrer@mastodon.socialR ricferrer@mastodon.social

              @trwnh @evan @julian @rimu

              I think the biggest difference with pdfs, mp4 in your example and an activity is that I most likely want to interact with an activitypub object: either follow, repost/announce, etc for this to work I need to be logged in. So is the solution to include an activitypub client in the browser? Use an external viewer that intercepts through browser extensions?

              Now even the experience inside mastodon sometimes opens a webview 🤷🏻‍♂️

              trwnh@mastodon.socialT This user is from outside of this forum
              trwnh@mastodon.socialT This user is from outside of this forum
              trwnh@mastodon.social
              wrote last edited by
              #25

              @ricferrer @evan @julian @rimu

              acceptable solutions imo:

              - a browser extension that lets you POST to your outbox (to publish activities) or proxyUrl (to view activity streams 2.0 resources)
              - in-app rewriting like https://browser.pub/ that keeps all links as "internal links" with the ability to open an "external link" that takes you out of the app
              - a system app that handles activity streams 2.0 resources which your default browser can dispatch to (and this may be a PWA!)

              1 Reply Last reply
              0
              • trwnh@mastodon.socialT trwnh@mastodon.social

                @ricferrer @evan @julian @rimu any browser right now can recognize, or should be able to recognize, that the http response it got is "content-type: application/activity+json" and then open it in your system's configured activity+json processor, like a PDF or PNG or anything else.

                i think it's not realistic to fork the entire namespace of http resources based on content-type. it was bad enough that https: was different from http: and we are still dealing with the repercussions of that move today

                ricferrer@mastodon.socialR This user is from outside of this forum
                ricferrer@mastodon.socialR This user is from outside of this forum
                ricferrer@mastodon.social
                wrote last edited by
                #26

                @trwnh @evan @julian @rimu imho this is unrealistic and wishful thinking. I don’t think all major browsers will agree to do it this way anytime soon. Specially on mobile where most people get their content.

                if that doesn’t happen the fediverse will continue to be difficult for ppl accustomed to one app that offers a unified social experience

                Before 2015 universal/app links didn’t exist, a URI scheme was the best solution FB, Twitter, Instagram found

                trwnh@mastodon.socialT 1 Reply Last reply
                0
                • ricferrer@mastodon.socialR ricferrer@mastodon.social

                  @trwnh @evan @julian @rimu

                  I think the biggest difference with pdfs, mp4 in your example and an activity is that I most likely want to interact with an activitypub object: either follow, repost/announce, etc for this to work I need to be logged in. So is the solution to include an activitypub client in the browser? Use an external viewer that intercepts through browser extensions?

                  Now even the experience inside mastodon sometimes opens a webview 🤷🏻‍♂️

                  benpate@mastodon.socialB This user is from outside of this forum
                  benpate@mastodon.socialB This user is from outside of this forum
                  benpate@mastodon.social
                  wrote last edited by
                  #27

                  I think the right solution is to use a combination of FedCM (making progress in the W3C) plus Activity Intents (FEP-3b86) to link you back to the web page for your home server.

                  FedCM will let you “sign in” to your browser, and make that information available (with consent) to the pages you visit online.

                  Activity Intents publish the operations your home server supports, then give links to complete the intent.

                  We already have the tools we need.

                  @ricferrer @trwnh @evan @julian @rimu

                  trwnh@mastodon.socialT 1 Reply Last reply
                  0
                  • ricferrer@mastodon.socialR ricferrer@mastodon.social

                    @trwnh @evan @julian @rimu imho this is unrealistic and wishful thinking. I don’t think all major browsers will agree to do it this way anytime soon. Specially on mobile where most people get their content.

                    if that doesn’t happen the fediverse will continue to be difficult for ppl accustomed to one app that offers a unified social experience

                    Before 2015 universal/app links didn’t exist, a URI scheme was the best solution FB, Twitter, Instagram found

                    trwnh@mastodon.socialT This user is from outside of this forum
                    trwnh@mastodon.socialT This user is from outside of this forum
                    trwnh@mastodon.social
                    wrote last edited by
                    #28

                    @ricferrer @evan @julian @rimu fb twitter instagram etc are also centralized single entities, so there's no contention on who gets to open the link.

                    ricferrer@mastodon.socialR 1 Reply Last reply
                    0
                    • benpate@mastodon.socialB benpate@mastodon.social

                      I think the right solution is to use a combination of FedCM (making progress in the W3C) plus Activity Intents (FEP-3b86) to link you back to the web page for your home server.

                      FedCM will let you “sign in” to your browser, and make that information available (with consent) to the pages you visit online.

                      Activity Intents publish the operations your home server supports, then give links to complete the intent.

                      We already have the tools we need.

                      @ricferrer @trwnh @evan @julian @rimu

                      trwnh@mastodon.socialT This user is from outside of this forum
                      trwnh@mastodon.socialT This user is from outside of this forum
                      trwnh@mastodon.social
                      wrote last edited by
                      #29

                      @benpate @ricferrer @evan @julian @rimu should be possible even without necessarily those specific tools -- although fedcm can make it "friendlier" ux-wise

                      - authenticate your id ("i am this person")
                      - get the linked claims from the id ("this is my proxy url")
                      - submit the request ("fetch me this thing")

                      i mean, you could write a web extension right now that does it in a very minimal way, i'm pretty sure? "POST the current URL to this proxyUrl" is not exactly a difficult thing to do...

                      trwnh@mastodon.socialT benpate@mastodon.socialB ricferrer@mastodon.socialR 3 Replies Last reply
                      0
                      • trwnh@mastodon.socialT trwnh@mastodon.social

                        @benpate @ricferrer @evan @julian @rimu should be possible even without necessarily those specific tools -- although fedcm can make it "friendlier" ux-wise

                        - authenticate your id ("i am this person")
                        - get the linked claims from the id ("this is my proxy url")
                        - submit the request ("fetch me this thing")

                        i mean, you could write a web extension right now that does it in a very minimal way, i'm pretty sure? "POST the current URL to this proxyUrl" is not exactly a difficult thing to do...

                        trwnh@mastodon.socialT This user is from outside of this forum
                        trwnh@mastodon.socialT This user is from outside of this forum
                        trwnh@mastodon.social
                        wrote last edited by
                        #30

                        @benpate @ricferrer @evan @julian @rimu there's a shortcoming where mobile browsers don't let you install web extensions as easily but that can also be overcome i think.

                        trwnh@mastodon.socialT 1 Reply Last reply
                        0
                        • trwnh@mastodon.socialT trwnh@mastodon.social

                          @benpate @ricferrer @evan @julian @rimu there's a shortcoming where mobile browsers don't let you install web extensions as easily but that can also be overcome i think.

                          trwnh@mastodon.socialT This user is from outside of this forum
                          trwnh@mastodon.socialT This user is from outside of this forum
                          trwnh@mastodon.social
                          wrote last edited by
                          #31

                          @benpate @ricferrer @evan @julian @rimu native apps can also expose share targets so you can "share" the current web URL to those apps and it opens in those apps.

                          ricferrer@mastodon.socialR 1 Reply Last reply
                          0
                          • trwnh@mastodon.socialT trwnh@mastodon.social

                            @benpate @ricferrer @evan @julian @rimu should be possible even without necessarily those specific tools -- although fedcm can make it "friendlier" ux-wise

                            - authenticate your id ("i am this person")
                            - get the linked claims from the id ("this is my proxy url")
                            - submit the request ("fetch me this thing")

                            i mean, you could write a web extension right now that does it in a very minimal way, i'm pretty sure? "POST the current URL to this proxyUrl" is not exactly a difficult thing to do...

                            benpate@mastodon.socialB This user is from outside of this forum
                            benpate@mastodon.socialB This user is from outside of this forum
                            benpate@mastodon.social
                            wrote last edited by
                            #32

                            You’re correct.

                            FedCM is a bonus, but not required.

                            And Activity Intents just normalize the mess of “remote follows” and “share intents” that many apps already support. I currently “polyfill” intents for servers (like Mastodon) that don’t publish explicitly.

                            It should, however, start with a GET to my home server (not a POST) so I can see what I’m about to do. There’s so much variation between servers; we’re asking for bugs if we skip this step.

                            @trwnh @ricferrer @evan @julian @rimu

                            trwnh@mastodon.socialT 1 Reply Last reply
                            0
                            • benpate@mastodon.socialB benpate@mastodon.social

                              You’re correct.

                              FedCM is a bonus, but not required.

                              And Activity Intents just normalize the mess of “remote follows” and “share intents” that many apps already support. I currently “polyfill” intents for servers (like Mastodon) that don’t publish explicitly.

                              It should, however, start with a GET to my home server (not a POST) so I can see what I’m about to do. There’s so much variation between servers; we’re asking for bugs if we skip this step.

                              @trwnh @ricferrer @evan @julian @rimu

                              trwnh@mastodon.socialT This user is from outside of this forum
                              trwnh@mastodon.socialT This user is from outside of this forum
                              trwnh@mastodon.social
                              wrote last edited by
                              #33

                              @benpate @ricferrer @evan @julian @rimu i'm not entirely sure why it's POST proxyUrl instead of GET proxyUrl but i think it has to do with leaking metadata iirc

                              benpate@mastodon.socialB 1 Reply Last reply
                              0
                              • trwnh@mastodon.socialT trwnh@mastodon.social

                                @benpate @ricferrer @evan @julian @rimu should be possible even without necessarily those specific tools -- although fedcm can make it "friendlier" ux-wise

                                - authenticate your id ("i am this person")
                                - get the linked claims from the id ("this is my proxy url")
                                - submit the request ("fetch me this thing")

                                i mean, you could write a web extension right now that does it in a very minimal way, i'm pretty sure? "POST the current URL to this proxyUrl" is not exactly a difficult thing to do...

                                ricferrer@mastodon.socialR This user is from outside of this forum
                                ricferrer@mastodon.socialR This user is from outside of this forum
                                ricferrer@mastodon.social
                                wrote last edited by
                                #34

                                @trwnh @benpate @evan @julian @rimu of course. There are several nerdy and probably cleaner ways of doing it. But requiring the user to install an extension is the first mistake on the path to wide adoption. I think sometimes a more pragmatic approach can bring the best results, if the goal is to get most people to the fediverse and not have the most elegant solution from the the start or nothing

                                trwnh@mastodon.socialT benpate@mastodon.socialB 2 Replies Last reply
                                0
                                • ricferrer@mastodon.socialR ricferrer@mastodon.social

                                  @trwnh @benpate @evan @julian @rimu of course. There are several nerdy and probably cleaner ways of doing it. But requiring the user to install an extension is the first mistake on the path to wide adoption. I think sometimes a more pragmatic approach can bring the best results, if the goal is to get most people to the fediverse and not have the most elegant solution from the the start or nothing

                                  trwnh@mastodon.socialT This user is from outside of this forum
                                  trwnh@mastodon.socialT This user is from outside of this forum
                                  trwnh@mastodon.social
                                  wrote last edited by
                                  #35

                                  @ricferrer @benpate @evan @julian @rimu you don't have to install an extension though -- that's just one way to make things easier.

                                  consider the example of sharing something via a messaging app though. do you trust people to copy the "right" link? or do people have to load an https: then load a fedi: link twice in a row? how is that supposed to work vs just having your existing https resolver handle it for you, *like it already does* to some extent with other content-types?

                                  trwnh@mastodon.socialT 1 Reply Last reply
                                  0
                                  • trwnh@mastodon.socialT trwnh@mastodon.social

                                    @benpate @ricferrer @evan @julian @rimu i'm not entirely sure why it's POST proxyUrl instead of GET proxyUrl but i think it has to do with leaking metadata iirc

                                    benpate@mastodon.socialB This user is from outside of this forum
                                    benpate@mastodon.socialB This user is from outside of this forum
                                    benpate@mastodon.social
                                    wrote last edited by
                                    #36

                                    In the end, we need real “share” and “like” buttons for the Fediverse - with as few clicks as possible - wrapped up as easily installable widgets that go next to Twitter and Facebook on every site online.

                                    (That’s step 1)

                                    Once we do this, step 2 is to lobby sites to JUST use Fediverse buttons, and drop the ones for hateful platforms.

                                    @trwnh @ricferrer @evan @julian @rimu

                                    dansup@mastodon.socialD ricferrer@mastodon.socialR 2 Replies Last reply
                                    0
                                    • trwnh@mastodon.socialT trwnh@mastodon.social

                                      @ricferrer @benpate @evan @julian @rimu you don't have to install an extension though -- that's just one way to make things easier.

                                      consider the example of sharing something via a messaging app though. do you trust people to copy the "right" link? or do people have to load an https: then load a fedi: link twice in a row? how is that supposed to work vs just having your existing https resolver handle it for you, *like it already does* to some extent with other content-types?

                                      trwnh@mastodon.socialT This user is from outside of this forum
                                      trwnh@mastodon.socialT This user is from outside of this forum
                                      trwnh@mastodon.social
                                      wrote last edited by
                                      #37

                                      @ricferrer @benpate @evan @julian @rimu in any case the thing all fedi apps can do "right now" (without any ecosystem changes otherwise) is to try to load all https: links locally before kicking users out. this is at least half of the problem solved right away.

                                      benpate@mastodon.socialB ricferrer@mastodon.socialR 2 Replies Last reply
                                      0
                                      • ricferrer@mastodon.socialR ricferrer@mastodon.social

                                        @trwnh @benpate @evan @julian @rimu of course. There are several nerdy and probably cleaner ways of doing it. But requiring the user to install an extension is the first mistake on the path to wide adoption. I think sometimes a more pragmatic approach can bring the best results, if the goal is to get most people to the fediverse and not have the most elegant solution from the the start or nothing

                                        benpate@mastodon.socialB This user is from outside of this forum
                                        benpate@mastodon.socialB This user is from outside of this forum
                                        benpate@mastodon.social
                                        wrote last edited by
                                        #38

                                        Agreed. Nobody’s going to install an extension. It HAS to work with native web pages and vanilla browsers to be viable.

                                        @ricferrer @trwnh @evan @julian @rimu

                                        1 Reply Last reply
                                        0
                                        • trwnh@mastodon.socialT trwnh@mastodon.social

                                          @ricferrer @evan @julian @rimu fb twitter instagram etc are also centralized single entities, so there's no contention on who gets to open the link.

                                          ricferrer@mastodon.socialR This user is from outside of this forum
                                          ricferrer@mastodon.socialR This user is from outside of this forum
                                          ricferrer@mastodon.social
                                          wrote last edited by
                                          #39

                                          @trwnh @evan @julian @rimu it already works well for mailto: the average user doesn’t have 10 mail clients. For the advanced and technical savvy users that want a bunch of fedi clients they can find other solutions on how deal with it.

                                          Btw Android lets you choose your the app.

                                          Before 2015 you would uninstall twitter and install tweetbot which responded to twitter:

                                          Fallbacks to http/html for people without apps was handled through JavaScript

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups