Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • 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
We Distribute
  1. Home
  2. Technical Discussion
  3. To know what software an instance is running (Mastodon, Pleroma, Akkoma, Firefish, Friendica, etc), have to make 2 calls:

To know what software an instance is running (Mastodon, Pleroma, Akkoma, Firefish, Friendica, etc), have to make 2 calls:

Scheduled Pinned Locked Moved Technical Discussion
mastodevfedidev
3 Posts 3 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.
  • cheeaun@mastodon.socialC This user is from outside of this forum
    cheeaun@mastodon.socialC This user is from outside of this forum
    cheeaun@mastodon.social
    wrote on last edited by
    #1

    To know what software an instance is running (Mastodon, Pleroma, Akkoma, Firefish, Friendica, etc), have to make 2 calls:

    1. `/.well-known/nodeinfo` - get the `href` for a nodeinfo link e.g. https://mastodon.social/.well-known/nodeinfo
    2. `/nodeinfo/2.0` (possibly 1.0 or 2.1 too) - get the `software.name` e.g. https://mastodon.social/nodeinfo/2.0

    And… both are not CORS-enabled (again) for web apps to request πŸ˜…πŸ˜’

    Reference: https://github.com/h3poteto/megalodon/blob/90461fa7d5a6349cb31dcd1d3c6ef8641281d29e/megalodon/src/detector.ts

    #MastoDev #FediDev

    thisismissem@activitypub.spaceT 1 Reply Last reply
    0
    • cheeaun@mastodon.socialC cheeaun@mastodon.social

      To know what software an instance is running (Mastodon, Pleroma, Akkoma, Firefish, Friendica, etc), have to make 2 calls:

      1. `/.well-known/nodeinfo` - get the `href` for a nodeinfo link e.g. https://mastodon.social/.well-known/nodeinfo
      2. `/nodeinfo/2.0` (possibly 1.0 or 2.1 too) - get the `software.name` e.g. https://mastodon.social/nodeinfo/2.0

      And… both are not CORS-enabled (again) for web apps to request πŸ˜…πŸ˜’

      Reference: https://github.com/h3poteto/megalodon/blob/90461fa7d5a6349cb31dcd1d3c6ef8641281d29e/megalodon/src/detector.ts

      #MastoDev #FediDev

      thisismissem@activitypub.spaceT This user is from outside of this forum
      thisismissem@activitypub.spaceT This user is from outside of this forum
      thisismissem@activitypub.space
      wrote last edited by
      #2

      I know Mastodon and Hollo both have CORS enabled on these endpoints: https://github.com/mastodon/mastodon/blob/main/config/initializers/cors.rb#L16

      1 Reply Last reply
      0
      • julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.spaceJ This user is from outside of this forum
        julian@activitypub.space
        wrote last edited by
        #3

        Oh that's fun... you replied to a two year old topic because it got recently boosted heh.

        1 Reply Last reply
        0
        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
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups