Skip to content

WIP: Display IDNA instance domains

href requested to merge href/pleroma:display-idna into develop

This PR add support in the client APIs to see and use the utf-8 idna form of an instance domain (@href@état.aléatoire.net):

  • on an user profile it shows the utf8 version
  • when mentioning it uses the utf8 version
  • you can lookup an user with the utf8 version

The ASCII form should still work as well.

While thats sounds somewhat easy it needed a rewrite of some parts of the formatter related to mentions, the simple regex has been replaced by a tail-recursion to extract the mentions.

It works but need more tests to be sure I've not break something in the mentions or became to permissive; i'm opening the PR for feedback :)

Edited by href

Merge request reports