Salta al contenuto
Citiverse è uno spazio aperto a tutte le comunità. Se vuoi aprire un gruppo locale o una sezione per la tua organizzazione, puoi contattare gli amministratori: pagina dei contatti.

Internationalized Webfinger Handles in ActivityPub

Social Web Foundation
23 6 8
  • ActivityPub software usually (but not always!) uses a handle format defined by RFC 7033, Webfinger, which looks like username@domain.example. There’s a ActivityPub and Webfinger report from the Social Web Community Group that details how this interaction works.

    All parts of this handle format can include non-ASCII Unicode characters, like accented Latin, Chinese, Arabic, or Hindi scripts. But it takes extra work, so users can’t count on non-ASCII characters being supported in their own or others’ software.

    This is a problem for the Fediverse. Of the most-spoken human languages, only three primarily use only ASCII characters (English, Malaysian, Indonesian), for a total of about 500 million people. That means about 90% of humans use languages with non-Latin, or accented, character sets. We are missing an opportunity to include more people worldwide with internationalized handles with names, words and domains in their native languages.

    Jim DeLaHunt @jdlh has been doggedly pursuing better support for internationalized Webfinger handles in ActivityPub. To this end, the Social Web Community Group started tracking Internationalized Webfinger Handle Adoption. Covering dozens of servers, clients, and libraries that implement ActivityPub, the tracker helps to discovery which software can interoperate with inclusive handles.

    If you know of ActivityPub software that isn’t on this list, or that doesn’t have its adoption tracked (question mark in the matrix), please add an issue or open a PR in the ActivityPub Webfinger task force repository.

    scritto ultima modifica di julian@activitypub.space
    #21

    @evanprodromou@socialwebfoundation.org you should be able to add NodeBB to that list with ✔ across the board.

    @evan@cosocial.ca

  • scritto ultima modifica di
    #22

    @julian @evanprodromou @swf I mean, yeah, I *should* be able to. Have you tested it?

  • @julian @evanprodromou @swf I mean, yeah, I *should* be able to. Have you tested it?

    scritto ultima modifica di
    #23

    @evan@cosocial.ca indeed I have <img class="not-responsive emoji" src="/emoji/ap/smile/activitypub.space" title="😄" /> the issue's come up a bunch but when @edent@mastodon.social ran a public test, his internationalized handle was accepted ok.

    It's confirmed in code (all paths run through this regex):

    const webfingerRegex = /^(@|acct:)?[\p{L}\p{N}\p{M}_.-]+@.+$/u; 
    

    There were two places that could be cause for concern:

    1. My Activity Intents implementation (@benpate@mastodon.social) uses a naive regular expression that only accepts ASCII, but this is not webfinger and is a bug I can fix to use the proper regular expression.

    2. Requests to NodeBB requesting the unicode form of a domain will not match, because NodeBB expects punycode. This is compliant with the RFC. Likely browsers will natively translate unicode to punycode over the wire, but uncertain here.

    Both of those are relatively minor, so broadly, NodeBB checks all the boxes.


Citiverse è un progetto che si basa su NodeBB ed è federato! | Categorie federate | Chat | 📱 Installa web app o APK | 🧡 Donazioni | Privacy Policy

Il server utilizzato è quello di Webdock, in Danimarca. Se volete provarlo potete ottenere il 20% di sconto con questo link e noi riceveremo un aiuto sotto forma di credito da usare proprio per mantenere Citiverse.