diff options
author | dartcafe <github@dartcafe.de> | 2020-11-16 15:13:38 +0300 |
---|---|---|
committer | dartcafe <github@dartcafe.de> | 2020-11-19 10:20:55 +0300 |
commit | 19f473f7c0666149b6624f59feda10f86221951b (patch) | |
tree | 97bd60f0e3f9c9ade4ac7ec7800847216a6fe433 /lib/Controller/ShareController.php | |
parent | 2ef6affb28336ec328b20700ab035a0f227678ab (diff) |
do not substitute mail invitation with notification
Diffstat (limited to 'lib/Controller/ShareController.php')
-rw-r--r-- | lib/Controller/ShareController.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Controller/ShareController.php b/lib/Controller/ShareController.php index a67f2dde..c866bf33 100644 --- a/lib/Controller/ShareController.php +++ b/lib/Controller/ShareController.php @@ -162,6 +162,7 @@ class ShareController extends Controller { /** * Sent invitation mails for a share + * Additionally send notification via notifications * @NoAdminRequired * @PublicPage * @param string $token @@ -172,12 +173,12 @@ class ShareController extends Controller { $share = $this->shareService->get($token); if ($share->getType() === Share::TYPE_USER) { if ($this->notificationService->sendInvitation($share->getPollId(), $share->getUserId())) { - $sentResult = ['sentMails' => [new User($share->getuserId())]]; - $this->shareService->setInvitationSent($token); + // skip this atm, to send invitations as mail too, if user is a site user + // $sentResult = ['sentMails' => [new User($share->getuserId())]]; + // $this->shareService->setInvitationSent($token); } - } else { - $sentResult = $this->mailService->sendInvitation($token); } + $sentResult = $this->mailService->sendInvitation($token); return [ 'share' => $share, 'sentResult' => $sentResult |