diff options
author | Vitaly Takmazov | 2022-12-22 05:43:40 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-22 05:43:40 +0300 |
commit | f8406131fdbe835c52fd46ad68ddc7b0df54cffe (patch) | |
tree | 9ded6a40956ce2f45705c1975b9109aa1fa63159 /src/main/java/com/juick/util/MessageUtils.java | |
parent | d4df81c28908c593c2b59f2596e4e380492b32d0 (diff) |
`@username@example.com` urls are now redirects to ActivityPub profile
Diffstat (limited to 'src/main/java/com/juick/util/MessageUtils.java')
-rw-r--r-- | src/main/java/com/juick/util/MessageUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java index 7a95acb5..0ece7249 100644 --- a/src/main/java/com/juick/util/MessageUtils.java +++ b/src/main/java/com/juick/util/MessageUtils.java @@ -192,9 +192,9 @@ public class MessageUtils { // <a href="#12">/12</a> msg = msg.replaceAll(replyNumberRegex, "$1<a href=\"#$2\">/$2</a>$3"); - // @username@jabber.org - // <a href="http://juick.com/username@jabber.org/">@username@jabber.org</a> - msg = msg.replaceAll(jidRegex, "$1<span class=\"h-card\"><a class=\"u-url\" href=\"https://juick.com/$2/\">@$2</a></span>$3"); + // @username@mastodon.social + // <a href="http://juick.com/mention?username=username@mastodon.social/">@username@mastodon.social</a> + msg = msg.replaceAll(jidRegex, "$1<span class=\"h-card\"><a class=\"u-url\" href=\"http://juick.com/mention?username=$2\">@$2</a></span>$3"); // @username // <a href="http://juick.com/username/">@username</a> |