aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-12-25 12:55:10 +0300
committerGravatar Vitaly Takmazov2017-12-25 12:55:10 +0300
commite3a9e8a42bf980751db5f75c63ef9e17ab1ea8dc (patch)
tree3e7106a4883907368e60bd6372e809c27606afc4 /juick-api/src
parentd767b84a27b6864897bbfbd8c9250550975c5d45 (diff)
add email from facebook
Diffstat (limited to 'juick-api/src')
-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)));
}
}