require published_scope to access display name

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1718/head
Maxence Lange 2023-04-06 13:08:29 -01:00
rodzic e40bcb95cd
commit 22cd87bf5d
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) {