From 73f010403bffb4ed4662c8fcc3834239692bba1c Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Fri, 23 Dec 2022 03:50:55 +0300
Subject: Format mentions to make Mastodon happy
---
.../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 0f4ba034..009cc83a 100644
--- a/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java
+++ b/src/main/java/com/mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java
@@ -45,7 +45,7 @@ public class FormatMessageFilter implements Filter {
if (MessageUtils.isPM(msg)) {
return new SafeString(formattedMessage);
} else {
- String toUserString = msg.getTo().getUid() == 0 ? String.format("@%s",
+ 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());
String formatString = MessageUtils.replyStartsWithQuote(msg) ? "%s,\n%s" : "%s, %s";
String msgTxt = msg.getRid() > 0 ? String.format(formatString, toUserString, formattedMessage)
--
cgit v1.2.3