From 21010f01250e6bf9a3247e4922f88f13568fc959 Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Sun, 22 Aug 2021 08:04:02 +0300
Subject: Use Microformats markup for mentions to make Mastodon happy
https://microformats.org/wiki/h-card
---
src/main/java/com/juick/util/MessageUtils.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
(limited to 'src/main/java/com/juick')
diff --git a/src/main/java/com/juick/util/MessageUtils.java b/src/main/java/com/juick/util/MessageUtils.java
index 12823498..7a95acb5 100644
--- a/src/main/java/com/juick/util/MessageUtils.java
+++ b/src/main/java/com/juick/util/MessageUtils.java
@@ -194,11 +194,11 @@ public class MessageUtils {
// @username@jabber.org
// @username@jabber.org
- msg = msg.replaceAll(jidRegex, "$1@$2$3");
+ msg = msg.replaceAll(jidRegex, "$1@$2$3");
// @username
// @username
- msg = msg.replaceAll(usernameRegex, "$1@$2$3");
+ msg = msg.replaceAll(usernameRegex, "$1@$2$3");
// (http://juick.com/last?page=2)
// (juick.com)
--
cgit v1.2.3