aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-19 14:14:59 +0300
committerGravatar Vitaly Takmazov2016-12-19 14:14:59 +0300
commitbb31e52ad79ed43269e7946a344a42192d21684a (patch)
treea91a9fe99820bb5badb18956a46d0a90779c14e3 /juick-server/src/main
parent37235eb6f392005b91fcd005c9f645f4e36b82d1 (diff)
juick-protocol: format user feed
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/server/protocol/JuickProtocol.java2
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());