diff options
author | René Gieling <github@dartcafe.de> | 2020-07-07 18:34:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-07 18:34:35 +0300 |
commit | 3c965b1ee1be622fb589299cbe3c032eaab4c619 (patch) | |
tree | b45804803fa49efa839ee100d51c1fb673bf8c30 /lib | |
parent | cf3e219160de4282f1f595a201bf97ba5dc2026b (diff) | |
parent | eb89a6d643b41ed7eb0c32876ba107d6b8274a68 (diff) |
Merge pull request #990 from nextcloud/notificatoin-hide-username
Hide usernames if results are hidden
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Service/MailService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Service/MailService.php b/lib/Service/MailService.php index e95f8784..915632f6 100644 --- a/lib/Service/MailService.php +++ b/lib/Service/MailService.php @@ -352,7 +352,7 @@ class MailService { foreach ($log as $logItem) { if ($logItem->getPollId() === $subscription->getPollId()) { - if ($poll->getAnonymous()) { + if ($poll->getAnonymous() || $poll->getShowResults() !== "always") { $displayUser = "A user"; } elseif ($this->userManager->get($logItem->getUserId()) instanceof IUser) { $displayUser = $this->userManager->get($logItem->getUserId())->getDisplayName(); |