From 3e4991f94520a98f7c719437396163a8d199f319 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 27 Jan 2018 18:13:59 +0300 Subject: xmpp: use formatPostSummary in some commands --- juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'juick-xmpp/src/main') 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 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 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"; } -- cgit v1.2.3