From 867d82cf39026c09de06928f396d7f1c6cb9e90d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sun, 8 Apr 2018 09:59:30 +0300 Subject: server: fix /comment endpoint --- juick-server/src/main/java/com/juick/server/api/Post.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/juick-server/src/main/java/com/juick/server/api/Post.java b/juick-server/src/main/java/com/juick/server/api/Post.java index 68465de1..9dd42db0 100644 --- a/juick-server/src/main/java/com/juick/server/api/Post.java +++ b/juick-server/src/main/java/com/juick/server/api/Post.java @@ -163,7 +163,7 @@ public class Post { } } - return commandsManager.processCommand(visitor, body, attachmentFName).getNewMessage().get(); + return commandsManager.processCommand(visitor, String.format("#%d/%d %s", mid, rid, body), attachmentFName).getNewMessage().get(); } Session session = Session.getDefaultInstance(new Properties()); -- cgit v1.2.3