Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support XMPP URI in Mastodon interface #9776

Closed
rscmbbng opened this issue Jan 10, 2019 · 6 comments
Closed

Support XMPP URI in Mastodon interface #9776

rscmbbng opened this issue Jan 10, 2019 · 6 comments
Labels
suggestion Feature suggestion

Comments

@rscmbbng
Copy link

Some users put XMPP URI in their profiles or toots it would be nice if Mastodon can make these links clickable.

xmpp:user@instance.tld
or
xmpp://user@instance.tld

See : https://tools.ietf.org/html/rfc5122

The link can be an xmpp URI to join a chat room too.

xmpp:xmpp-sprint@chat.cluxia.eu?join

Expected behaviour

XMPP URIs are clickable allowing people open new chats on their system's XMPP client.

Actual behaviour

XMPP URIs appear as normal text and are not clickable or identifiable as an URI

Steps to reproduce the problem

Toot the following:
xmpp:xmpp-sprint@chat.cluxia.eu?join

@trwnh
Copy link
Member

trwnh commented Jan 10, 2019

Correct me if I'm wrong, but isn't this handled by the browser/OS and not by websites? https://wiki.xmpp.org/web/XMPP_URIs

@nightpool
Copy link
Member

nightpool commented Jan 10, 2019 via email

@Gargron Gargron added the suggestion Feature suggestion label Jan 20, 2019
@Neustradamus
Copy link

Neustradamus commented Feb 9, 2019

@trwnh no, soft/lib need to add support (xmpp:)

Example:

I have added in html-pipeline:

@Ppjet6
Copy link

Ppjet6 commented Nov 20, 2019

Hey! It would be great to have such a feature. I often find myself having to workaround it. Would a patch be considered?

ClearlyClaire added a commit to ClearlyClaire/mastodon that referenced this issue Dec 29, 2019
Fixes mastodon#9776

The difficult part is autolinking, because Twitter-text's extractor does
some pretty ad-hoc stuff to find things that “look like” URLs, and XMPP
URIs do not really match the assumptions of that lib, so it doesn't sound
wise to try to shoehorn it into the existing regex.

This is why I used a specific regex (very close, although slightly more
permissive than the RFC), and a specific scan function (a simplified version
of the generalized one from Twitter).
@Perflyst
Copy link

Perflyst commented Jan 2, 2020

Would be nice if xmpp uris are also supported in profile metadata

@Neustradamus
Copy link

Thanks a lot <3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion Feature suggestion
Projects
None yet
Development

No branches or pull requests

7 participants