Skip to content
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
  • 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 (No Skin)
  • No Skin
Collapse
Brand Logo

fedi wiki

  1. Home
  2. Proposal: Replace gateways query parameter in 'ap' URIs with @gateway, which can be used multiple times

Proposal: Replace gateways query parameter in 'ap' URIs with @gateway, which can be used multiple times

Scheduled Pinned Locked Moved
fepef61
4 Posts 2 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.
  • silverpill@mitra.socialS This user is from outside of this forum
    silverpill@mitra.socialS This user is from outside of this forum
    silverpill@mitra.social
    wrote last edited by
    #1

    Proposal: Replace gateways query parameter in 'ap' URIs with @gateway, which can be used multiple times

    https://codeberg.org/fediverse/fep/pulls/890

    Before:

    ?gateways=https%3A%2F%2Fserver1.example,https%3A%2F%2Fserver2.example
    

    After:

    ?@gateway=https%3A%2F%2Fserver1.example&@gateway=https%3A%2F%2Fserver2.example
    

    Query parameters are often used to specify collection filters. The @ prefix will make it clear that gateway parameter is special.

    #fep_ef61

    mariusor@metalhead.clubM 1 Reply Last reply
    0
    • silverpill@mitra.socialS silverpill@mitra.social

      Proposal: Replace gateways query parameter in 'ap' URIs with @gateway, which can be used multiple times

      https://codeberg.org/fediverse/fep/pulls/890

      Before:

      ?gateways=https%3A%2F%2Fserver1.example,https%3A%2F%2Fserver2.example
      

      After:

      ?@gateway=https%3A%2F%2Fserver1.example&@gateway=https%3A%2F%2Fserver2.example
      

      Query parameters are often used to specify collection filters. The @ prefix will make it clear that gateway parameter is special.

      #fep_ef61

      mariusor@metalhead.clubM This user is from outside of this forum
      mariusor@metalhead.clubM This user is from outside of this forum
      mariusor@metalhead.club
      wrote last edited by
      #2

      @silverpill what prevents the original gateways= being used multiple times?

      silverpill@mitra.socialS 1 Reply Last reply
      0
      • mariusor@metalhead.clubM mariusor@metalhead.club

        @silverpill what prevents the original gateways= being used multiple times?

        silverpill@mitra.socialS This user is from outside of this forum
        silverpill@mitra.socialS This user is from outside of this forum
        silverpill@mitra.social
        wrote last edited by
        #3

        @mariusor FEP-ef61 currently requires that the value of gateways is a comma separated list.

        1 Reply Last reply
        0
        • silverpill@mitra.socialS This user is from outside of this forum
          silverpill@mitra.socialS This user is from outside of this forum
          silverpill@mitra.social
          wrote last edited by
          #4

          @doesnm As far as I know, these are just an implementation quirk.

          But repeated parameters are allowed by URL (WHATWHG) standard: https://url.spec.whatwg.org/#urlencoded-parsing

          1 Reply Last reply
          0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          Powered by NodeBB Contributors
          • First post
            Last post