diff options
author | Vitaly Takmazov | 2018-04-23 14:29:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-23 14:29:06 +0300 |
commit | de22e88e68bdcdb427d079f835cc4fae8cacd0dd (patch) | |
tree | 53288595f4df0ed1b341292d6aa0559250408a06 | |
parent | e8041f3f4158a0cffd7403fec22272967475ddb7 (diff) |
server: reply to message should subscribe user
-rw-r--r-- | juick-common/src/main/java/com/juick/server/CommandsManager.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java index 9b7cda328..51051b7bb 100644 --- a/juick-common/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java @@ -488,6 +488,7 @@ public class CommandsManager { imagesService.saveImageWithPreviews(attachmentFName, fname); } Message original = messagesService.getMessage(mid); + subscriptionService.subscribeMessage(original, user); Message reply = messagesService.getReply(mid, newrid); applicationEventPublisher.publishEvent(new MessageEvent(this, reply, subscriptionService.getUsersSubscribedToComments(original, reply))); return CommandResult.build(reply,"Reply posted.\n#" + mid + "/" + newrid + " " |