Mastodon: TLD .gay is not supported in links

Created on 19 Dec 2020  ·  1Comment  ·  Source: tootsuite/mastodon

Expected behaviour

When creating a toot including a link to a .gay url, a link shoud be generated.

Actual behaviour

Instead, it is displayed as plain text.
2020 12 19 00 14 16n

Also happen in the profile metada.

Steps to reproduce the problem

Making a toot with a link to a .gay website

Specifications

Mastodon v3.2.1

bug

Most helpful comment

As far as I can tell, this is handled by app/javascript/mastodon/features/compose/util/url_regex.js (to correctly compute character count client-side, as links count for a fixed amount of characters regardless of their real length) and the twitter-text gem server-side. We're using a very old version of that gem, so it's likely newer versions include more TLDs.

>All comments

As far as I can tell, this is handled by app/javascript/mastodon/features/compose/util/url_regex.js (to correctly compute character count client-side, as links count for a fixed amount of characters regardless of their real length) and the twitter-text gem server-side. We're using a very old version of that gem, so it's likely newer versions include more TLDs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thomaskuntzz picture thomaskuntzz  ·  3Comments

KellerFuchs picture KellerFuchs  ·  3Comments

psychicteeth picture psychicteeth  ·  3Comments

hugogameiro picture hugogameiro  ·  3Comments

hidrarga picture hidrarga  ·  3Comments