From bb31e52ad79ed43269e7946a344a42192d21684a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Dec 2016 14:14:59 +0300 Subject: juick-protocol: format user feed --- juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick/server') 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 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()); -- cgit v1.2.3