diff options
author | Vitaly Takmazov | 2016-12-19 14:14:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-12-19 14:14:59 +0300 |
commit | bb31e52ad79ed43269e7946a344a42192d21684a (patch) | |
tree | a91a9fe99820bb5badb18956a46d0a90779c14e3 | |
parent | 37235eb6f392005b91fcd005c9f645f4e36b82d1 (diff) |
juick-protocol: format user feed
-rw-r--r-- | juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java index 7b155747..111a434a 100644 --- a/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java +++ b/juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java @@ -220,7 +220,7 @@ public class JuickProtocol { List<Message> messages = messagesService.getMessages(mids); return new ProtocolReply(String.format("Last messages from @%s:\n%s", arguments[0], String.join("\n", messages.stream() - .map(Object::toString).collect(Collectors.toList()))), + .map(PlainTextFormatter::formatPost).collect(Collectors.toList()))), Optional.of(json.writeValueAsString(messages))); } return new ProtocolReply("User not found", Optional.empty()); |