aboutsummaryrefslogtreecommitdiff
path: root/juick-xmpp/src/main/java/com/juick/components
diff options
context:
space:
mode:
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components')
-rw-r--r--juick-xmpp/src/main/java/com/juick/components/JuickBot.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
index 937645d0..bbe693a1 100644
--- a/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
+++ b/juick-xmpp/src/main/java/com/juick/components/JuickBot.java
@@ -597,7 +597,7 @@ public class JuickBot implements StanzaListener, AutoCloseable {
List<com.juick.Message> messages = messagesService.getMessages(mids);
return String.format("Last messages from @%s:\n%s", arguments[0],
String.join("\n", messages.stream()
- .map(PlainTextFormatter::formatPost).collect(Collectors.toList())));
+ .map(PlainTextFormatter::formatPostSummary).collect(Collectors.toList())));
}
return "User not found";
}
@@ -614,9 +614,9 @@ public class JuickBot implements StanzaListener, AutoCloseable {
List<com.juick.Message> replies = messagesService.getReplies(mid);
replies.add(0, msg);
return String.join("\n",
- replies.stream().map(PlainTextFormatter::formatPost).collect(Collectors.toList()));
+ replies.stream().map(PlainTextFormatter::formatPostSummary).collect(Collectors.toList()));
}
- return PlainTextFormatter.formatPost(msg);
+ return PlainTextFormatter.formatPostSummary(msg);
}
return "Message not found";
}