aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-23 14:29:06 +0300
committerGravatar Vitaly Takmazov2018-04-23 14:29:06 +0300
commitde22e88e68bdcdb427d079f835cc4fae8cacd0dd (patch)
tree53288595f4df0ed1b341292d6aa0559250408a06 /juick-common/src/main/java/com
parente8041f3f4158a0cffd7403fec22272967475ddb7 (diff)
server: reply to message should subscribe user
Diffstat (limited to 'juick-common/src/main/java/com')
-rw-r--r--juick-common/src/main/java/com/juick/server/CommandsManager.java1
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 9b7cda32..51051b7b 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 + " "