Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement FEP-4adb, FEP-2c59 #15

Closed
kwaa opened this issue Feb 18, 2024 · 5 comments · Fixed by #36
Closed

Implement FEP-4adb, FEP-2c59 #15

kwaa opened this issue Feb 18, 2024 · 5 comments · Fixed by #36
Labels
enhancement New feature or request

Comments

@kwaa
Copy link
Member

kwaa commented Feb 18, 2024

https://codeberg.org/fediverse/fep/src/branch/main/fep/4adb/fep-4adb.md

@kwaa kwaa added the enhancement New feature or request label Feb 18, 2024
@kwaa
Copy link
Member Author

kwaa commented Feb 19, 2024

I think the default should be acct:example.com@example.com.

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",
    {
      "xrd": "http://docs.oasis-open.org/ns/xri/xrd-1.0#",
      "aliases": {
        "@id": "xrd:Alias",
        "@type": "@id",
        "@container": "@list"
      },
    }
  ],
  "id": "https://hatsu.local/users/example.com",
  "preferredUsername": "example.com",
  "aliases": ["acct:example.com@example.com", "acct:example.com@hatsu.local"],
  ...
}

@kwaa
Copy link
Member Author

kwaa commented Feb 19, 2024

User customization via HTML Meta is also supported. Perhaps a documentation page should be added?

Since it has little to do with the HTML, I prefer to add it to the JSON Feed Extension.

<!-- "aliases": ["acct:i@example.com", "acct:example.com@hatsu.local"] -->
<meta name="hatsu-aliases" content="i" />

or add it to the JSON Feed Extension:

{
  "_hatsu": {
    "about": "https://github.com/importantimport/hatsu/issues/1",
    "aliases": "i"
  },
  ...
}

@kwaa kwaa added this to the 0.2 [celluloid] milestone Feb 19, 2024
kwaa added a commit that referenced this issue Feb 19, 2024
@kwaa
Copy link
Member Author

kwaa commented Feb 19, 2024

FEP-4adb has been implemented and I expect to support customization and close this issue in v0.2.0.

@kwaa
Copy link
Member Author

kwaa commented Feb 20, 2024

Notably, it is currently in conflict with FEP-ef61.

@kwaa kwaa changed the title Implement FEP-4adb Implement FEP-4adb, FEP-2c59 Feb 20, 2024
@kwaa
Copy link
Member Author

kwaa commented Feb 20, 2024

I now prefer to use _hatsu.aliases to be more intuitive.

{
  "_hatsu": {
    "about": "https://github.com/importantimport/hatsu/issues/1",
    "aliases": "i"
  },
  ...
}

This results in the following output:

{
  "@context": [
    "https://www.w3.org/ns/activitystreams",  // AS2
    "https://w3id.org/security/v1",  // security
    "https://purl.archive.org/socialweb/webfinger", // FEP-2c59
    {  // FEP-4adb
      "xrd": "http://docs.oasis-open.org/ns/xri/xrd-1.0#",
      "aliases": {
        "@id": "xrd:Alias",
        "@type": "@id",
        "@container": "@list"
      },
    }
  ],
  "id": "https://hatsu.local/users/example.com",
  "preferredUsername": "example.com",
  "aliases": ["acct:i@example.com", "acct:example.com@hatsu.local"],
  "webfinger": "acct:i@example.com",
  ...
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant