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
---
.../mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/main/java/com/mitchellbosecke')
diff --git a/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java b/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java
index aea76b2a..1b2f30b5 100644
--- a/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java
+++ b/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java
@@ -46,7 +46,7 @@ public class FormatMessageFilter implements Filter {
return new SafeString(formattedMessage);
} else {
String toUserString = msg.getTo().getUid() == 0 ? String.format("@%s",
- msg.getTo().getUri().toASCIIString(), msg.getTo().getName()) : String.format("@%s", msg.getTo().getName(), msg.getTo().getName());
+ msg.getTo().getUri().toASCIIString(), msg.getTo().getName()) : String.format("@%s", msg.getTo().getName(), msg.getTo().getName());
String formatString = MessageUtils.replyStartsWithQuote(msg) ? "%s,\n%s" : "%s, %s";
String msgTxt = msg.getRid() > 0 ? String.format(formatString, toUserString, formattedMessage)
: formattedMessage;
--
cgit v1.2.3