Merge pull request #1718 from nextcloud/fix/noid/scope-on-displa-name

require published_scope to access display name
pull/1720/head
Louis 2023-04-06 16:16:30 +02:00 zatwierdzone przez GitHub
commit ef9bd1a318
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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) {