Open single-right-quote opened 2 years ago
This is probably also an issue with upstream but I have not confirmed this yet.
This is indeed an upstream issue. I'd say @a@foo@bar
should not be considered a valid mention, to be honest.
I very much agree, but MENTION_RE
has matched mentions like that for as far back as I could be bothered to check (over six years ago); if that were to be changed, that would be its own issue upstream I think.
Steps to reproduce the problem
@user@domain@extra-text-here
(the class of mentions that trigger this problem may be larger); perMENTION_RE
this is a valid mention.Expected behaviour
The status have a
mention
, and thecontent
should hyperlink to @user@domainActual behaviour
The status has a
mention
but thecontent
does not have any hyperlinks.Specifications
This is probably also an issue with upstream but I have not confirmed this yet.
Here is an example status demonstrating the issue.
Here is a permalink to a post without a content warning; no hyperlink is visible at all. However, the
mention
is definitely there, as evidenced by the following screenshot where I reply to that post:Here is a JSON blob of that post as grabbed from developer tools, with a nonempty
mentions
and hyperlink-lesscontent
, as expected.I am using Firefox 99.0 on Windows 11; my instance is on https://github.com/kibicat/mastodon/commit/d0f03db93d83122cfaee46b0e12cff51b6b11702, which merges in https://github.com/glitch-soc/mastodon/commit/363773d0e9ffa9f4efc564603327f225193a2bf1.