Feature request: Do not recognize @a@b.com as an email address #61284
Unanswered
mcclure
asked this question in
Other Feature Feedback, Questions, & Ideas
Replies: 2 comments 2 replies
-
|
I concur, and would like to make a small amendment, that there is a way to resolve Mastodon/Fediverse handles, via the WebFinger (Wiki / RFC 7033) protocol, e.g. https://cijber.social/.well-known/webfinger?resource=acct:eater@cijber.social will result in a JSON definition with links to my profile. Which if desired by github could be used to correctly resolve these handles, and create accompanying links |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
I have a couple ideas on how to trick Markdown into not seeing "@some@text.here" as an email address:
`@some@text.here`
Hope this helps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Product Feedback
Feature Area
Issues
Body
I contribute to an Android client for a project known as "Mastodon", "ActivityPub" or "The Fediverse". This is an effort to build a social network, similar to Instagram or Twitter, but distributed across many server hosts and following a (w3 standard) open protocol. ActivityPub is growing in popularity of late: currently it is believed to have about ten million registered users; multiple unique apps in addition to Mastodon, such as Lemmy and Pixelfed, now exist implemented on top of it; and companies such as Tumblr, Facebook and Flickr have discussed integrating their products with it.
In ActivityPub/Mastodon, a username is denoted by a little @@ sigil, like @mcc_test_tusky@mastodon.social. This is supposed to call to mind the "@username" convention on sites like Twitter or Instagram, but it has the user@host structure of an email (because like email, ActivityPub usernames are scoped to their host domains).
Mastodon usernames confuse Github's markdown. As you can see above, the markdown parser ignores the leading @ and interprets the username@hostname as an email, creating a mailto: link. This is incorrect, since most Mastodon addresses do not have corresponding SMTP mailboxes, and so mis-marking these usernames as emails is incorrect could cause confusion.
I have experienced this mis-marking with issues on our Android Mastodon project and it is sort of irritating. My "expected behavior" is that when you see a @username@domain, you should not flag it as an email or (because there is currently no recognized URL scheme for sending a browser directly to a Fediverse profile) specially mark it in any other way. Just treat it like normal text.
Although this is a minor problem, the costs to fixing it are low because no one would ever write an email like @username@domain on purpose.
(For the record "Bluesky", another new social network not related to ActivityPub but with aspirations to someday adopt a distributed open protocol, is not affected by this problem because its usernames consist only of a domain, like @username.bsky.com .)
This problem is afaik common to anything involving Github flavored Markdown, including Issues as well as Discussions and possibly Pages, but it seems most relevant to Issues and there is not a specific feedback section for Github Flavored Markdown.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions