diff options
author | Vitaly Takmazov | 2018-01-27 18:13:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-27 18:13:59 +0300 |
commit | 3e4991f94520a98f7c719437396163a8d199f319 (patch) | |
tree | 5c748210f45cc7e2e04e9d01ecd0dcdb114a5d10 /juick-xmpp/src/main/java/com/juick/components/JuickBot.java | |
parent | a9b8e568140d8bfb5191a152d4921b0059821f62 (diff) |
xmpp: use formatPostSummary in some commands
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/JuickBot.java')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/JuickBot.java | 6 |
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"; } |