diff options
author | dartcafe <github@dartcafe.de> | 2022-01-28 00:27:48 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2022-01-28 00:27:48 +0300 |
commit | 22340d5a41044e1c0e79399e0fb906e794c8ff2d (patch) | |
tree | d10afb3953bef3a9b89a9ab5655f5abf6e8f5d0b /lib | |
parent | 3c0421e891d06528e561122f91f52142f9b303ca (diff) |
skip reminder for circles and contact groups
Signed-off-by: dartcafe <github@dartcafe.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/MailService.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Service/MailService.php b/lib/Service/MailService.php index 08d2f8f0..779ee15e 100644 --- a/lib/Service/MailService.php +++ b/lib/Service/MailService.php @@ -191,6 +191,10 @@ class MailService { $shares = $this->shareMapper->findByPollUnreminded($poll->getId()); foreach ($shares as $share) { + if (in_array($share->getType(), [Share::TYPE_CIRCLE, Share::TYPE_CONTACTGROUP])) { + continue; + } + foreach ($share->getUserObject()->getMembers() as $recipient) { $reminder = new ReminderMail( $recipient->getId(), |