From a3d45f31b07735118b2e74ddb3cb3af0dc29495c Mon Sep 17 00:00:00 2001
From: Vitaly Takmazov
Date: Thu, 16 Sep 2021 00:51:23 +0300
Subject: Add required magic to make Mastodon happy
---
.../mitchellbosecke/pebble/extension/filters/FormatMessageFilter.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/main/java')
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 1b2f30b5..41c80691 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