aboutsummaryrefslogtreecommitdiff
path: root/juick-api
diff options
context:
space:
mode:
Diffstat (limited to 'juick-api')
-rw-r--r--juick-api/src/main/java/com/juick/api/EmailManager.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-api/src/main/java/com/juick/api/EmailManager.java b/juick-api/src/main/java/com/juick/api/EmailManager.java
index c0cc1c37..a2ddbc3b 100644
--- a/juick-api/src/main/java/com/juick/api/EmailManager.java
+++ b/juick-api/src/main/java/com/juick/api/EmailManager.java
@@ -35,11 +35,11 @@ public class EmailManager implements ApplicationListener<MessageEvent> {
Message msg = event.getMessage();
if (msg.getRid() == 0) {
subscriptionService.getSubscribedUsers(msg.getUser().getUid(), msg.getMid())
- .forEach(user -> emailService.getEmails(user.getUid())
+ .forEach(user -> emailService.getEmails(user.getUid(), true)
.forEach(email -> emailNotify(email, msg)));
} else {
subscriptionService.getUsersSubscribedToComments(msg.getMid(), msg.getUser().getUid())
- .forEach(user -> emailService.getEmails(user.getUid())
+ .forEach(user -> emailService.getEmails(user.getUid(), true)
.forEach(email -> emailNotify(email, msg)));
}
}