Link preview mishandles mastodon handle
Environment
- OS: Linux Mint 21 Vanessa
- Jami version: 202210171819
- What build you are using: jami.net
Steps to reproduce
- Can you reproduce the bug: at will
- Steps:
- Send a message containing a mastodon handle, like
@tubul@fosstodon.org
- Send a message containing a mastodon handle, like
- Actual result:
- On the desktop client, below the message a link is added to
http://mailto:tubul@fosstodon.org/
- On the Android client, the link is converted to a link preview for
http://fosstodon.org
- On the desktop client, below the message a link is added to
- Expected result: One of
- no link preview for *
@handle@mastodon.instance
addresses - a proper
mailto:
link (i.e. without prefixing it withhttp://
- Ideally: turning it into a working link to the mastodon instance (e.g.
@tubul@fosstodon.org
=>http://fosstodon.org/@tubul
)
- no link preview for *
So the problem is two-fold:
- mastodon handles are misrecognized as e-mail address
- e-mail addresses are converted to
http://mailto:
link previews
Additional information
Screenshot:
Clicking the inline blue address does properly open my e-mail client.