From 22cd87bf5d82bb57555dcc754705d04585b8ada9 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Thu, 6 Apr 2023 13:08:29 -0100 Subject: [PATCH] require published_scope to access display name Signed-off-by: Maxence Lange --- lib/Service/AccountService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php index 30e0758f..19c4b384 100644 --- a/lib/Service/AccountService.php +++ b/lib/Service/AccountService.php @@ -357,7 +357,7 @@ class AccountService { try { $account = $this->accountManager->getAccount($user); $displayNameProperty = $account->getProperty(IAccountManager::PROPERTY_DISPLAYNAME); - if ($displayNameProperty->getScope() === IAccountManager::VISIBILITY_PUBLIC) { + if ($displayNameProperty->getScope() === IAccountManager::SCOPE_PUBLISHED) { $actor->setName($displayNameProperty->getValue()); } } catch (Exception $e) {