Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/polls.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRené Gieling <github@dartcafe.de>2020-07-07 18:34:35 +0300
committerGitHub <noreply@github.com>2020-07-07 18:34:35 +0300
commit3c965b1ee1be622fb589299cbe3c032eaab4c619 (patch)
treeb45804803fa49efa839ee100d51c1fb673bf8c30 /lib
parentcf3e219160de4282f1f595a201bf97ba5dc2026b (diff)
parenteb89a6d643b41ed7eb0c32876ba107d6b8274a68 (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.php2
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();