grishka / Smithereen

Federated, ActivityPub-compatible social network server with friends, walls, and groups.
The Unlicense
393 stars 31 forks source link

IDN (e. g. cyrillic) domains result in unusable links #47

Closed notpushkin closed 2 years ago

notpushkin commented 2 years ago

The following input:

супербиток.сука.сайт
https://супербиток.сука.сайт/
https://супербиток.сука.сайт/404

Results in the following HTML (newlines added for clarity):

<a>супербиток.сука.сайт</a><br>
<a>https://супербиток.сука.сайт</a>/<br>
<a>https://супербиток.сука.сайт/404</a>

The <a> tags here lack the href attribute, so you can't click them. See live: https://friends.grishka.me/posts/155635

Workaround is to explicitly add the IDN-encoded <a href=...> tag to the post source: https://friends.grishka.me/posts/155641