这是indexloc提供的服务,不要输入任何密码
Skip to content

Include the latest Nodeinfo data in /.well-known/nodeinfo? #97

@annando

Description

@annando

Additionally to providing the links to the specific nodeinfo versions, the endpoint /.well-known/nodeinfo could also include the highest supported nodeinfo data. For example:

 {
    "links": [
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.0",
            "href": "https://example.org/nodeinfo/2.0"
        },
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.1",
            "href": "https://example.org/nodeinfo/2.1"
        },
        {
            "rel": "http://nodeinfo.diaspora.software/ns/schema/2.2",
            "href": "https://example.org/nodeinfo/2.2"
        }
    ],
  "version": "2.2",
  "instance": {
    "name": "FI𝑓F fediverse",
    "description": "Welcome to the FI𝑓F fediverse server"
  },
  "software": {
    "name": "diaspora",
    "version": "0.5.0",
    "repository": "https://github.com/diaspora/diaspora",
    "homepage": "https://diasporafoundation.org/"
  },
  "protocols": ["diaspora"],
  "services": {
    "inbound": ["gnusocial"],
    "outbound": ["facebook", "twitter"]
  },
  "openRegistrations": true,
  "usage": {
    "users": {
      "total": 123,
      "activeHalfyear": 42,
      "activeMonth": 23,
      "activeWeek": 22
    },
    "localPosts": 500,
    "localComments": 1000
  },
  "metadata": {
    "chat_enabled": true
  }
}

This would reduce the numbers of needed requests and would be backwards compatible.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions