diff options
author | René Gieling <github@dartcafe.de> | 2021-05-28 19:24:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-28 19:24:04 +0300 |
commit | d2b61b3d4ceb62f494db7d9c67aacb0d5a49c20d (patch) | |
tree | 8cc21aa3b866eb7ed59dad52615e2661673095ed /lib | |
parent | 321f3cfb41a83f7cf86f46d3a0fe63be0cabe239 (diff) | |
parent | fdd1a4cd670a3b2efb96030efc091340c91c80f6 (diff) |
Merge pull request #1657 from nextcloud/enhancement/invitations
Add displayname to Invitation notice
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/MailService.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Service/MailService.php b/lib/Service/MailService.php index 040bf8b5..a5fc00cb 100644 --- a/lib/Service/MailService.php +++ b/lib/Service/MailService.php @@ -184,9 +184,9 @@ class MailService { ); $share->setInvitationSent(time()); $this->shareMapper->update($share); - $sentMails[] = $recipient->getId(); + $sentMails[] = $recipient; } catch (\Exception $e) { - $abortedMails[] = $recipient->getId(); + $abortedMails[] = $recipient; $this->logger->error('Error sending Mail to ' . json_encode($recipient)); } } @@ -231,7 +231,7 @@ class MailService { $recipient->getDisplayName() ); } catch (\Exception $e) { - $this->logger->error('Error sending Mail to ' . $recipient->getId()); + $this->logger->error('Error sending Mail to ' . json_encode($recipient)); } } } |