bluelinklabs / ctzn

[DEPRECATED] An open social network built on the Hypercore Protocol data mesh.
https://ctzn.network
MIT License
286 stars 25 forks source link

Change rel in webfinger response #43

Open lumenpink opened 3 years ago

lumenpink commented 3 years ago

Hi!

I saw the webfinger response is searched by rel=self and an hyper url. Maybe we should change this to a specific CTZN object with URL pointi to a description.

Why? Because if you use your webfinger server for more than one service, they can collide.

Like, activitypub webfinger have a self element pointing to the json profile page.

Somethink like:

webfinger result

{
  "subject": "acct:user@domain.com",
  "links": [
    {
      "rel": "http://ctzn.network/rel/db-url",
      "href": "hyper://long-hash-here/"
    }
  ]
}

An the destiny page somehing like:

Link Relation: db-url

The link relation http://ctzn.network/rel/db-url identifies the hypercore URL of the profile database. It MUST point to an hyper:// address.

pfrazee commented 3 years ago

Probably wise! Let's do this before the beta launches.