diff options
author | 2018-04-05 14:03:09 +0300 | |
---|---|---|
committer | 2018-04-05 14:03:09 +0300 | |
commit | 534d3c6f8ab31c0d41e6a6980f8cbc3f25e8d1b9 (patch) | |
tree | 9da4ecad27afa9750a6c0369e181e287944473bf /juick-server/src/main/java/com/juick/server/api/Post.java | |
parent | 2f53f75e584e0522c8f4783bc28df4ad6eb3033d (diff) |
server: commands are not depended on xmpp now
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/Post.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Post.java | 6 |
1 files changed, 3 insertions, 3 deletions
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 ef0c7dd9..e949dad7 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 @@ -106,7 +106,7 @@ public class Post { throw new HttpBadRequestException(); } } - xmppConnection.incomingMessageJuick(visitor, null, body, attachmentFName); + commandsManager.processCommand(visitor, null, body, attachmentFName); } @PostMapping("/upload") public String doUploadFile(@RequestParam(required = true) MultipartFile attach) { @@ -163,7 +163,7 @@ public class Post { } } - return xmppConnection.incomingMessageJuick(visitor, null, body, attachmentFName); + return commandsManager.processCommand(visitor, null, body, attachmentFName).getNewMessage(); } Session session = Session.getDefaultInstance(new Properties()); @@ -227,7 +227,7 @@ public class Post { } URI attachmentUri = StringUtils.isNotEmpty(attachmentFName[0]) ? URI.create(String.format("juick://%s", attachmentFName[0])) : URI.create(StringUtils.EMPTY); - xmppConnection.incomingMessageJuick(visitor, null, body[0], attachmentUri); + commandsManager.processCommand(visitor, null, body[0], attachmentUri); } else { logger.info("not registered: {}", from); } |