From e3a9e8a42bf980751db5f75c63ef9e17ab1ea8dc Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 25 Dec 2017 12:55:10 +0300 Subject: add email from facebook --- juick-api/src/main/java/com/juick/api/EmailManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-api/src') 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 { 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))); } } -- cgit v1.2.3