kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1718 from nextcloud/fix/noid/scope-on-displa-name
require published_scope to access display namepull/1720/head
commit
ef9bd1a318
|
@ -357,7 +357,7 @@ class AccountService {
|
||||||
try {
|
try {
|
||||||
$account = $this->accountManager->getAccount($user);
|
$account = $this->accountManager->getAccount($user);
|
||||||
$displayNameProperty = $account->getProperty(IAccountManager::PROPERTY_DISPLAYNAME);
|
$displayNameProperty = $account->getProperty(IAccountManager::PROPERTY_DISPLAYNAME);
|
||||||
if ($displayNameProperty->getScope() === IAccountManager::VISIBILITY_PUBLIC) {
|
if ($displayNameProperty->getScope() === IAccountManager::SCOPE_PUBLISHED) {
|
||||||
$actor->setName($displayNameProperty->getValue());
|
$actor->setName($displayNameProperty->getValue());
|
||||||
}
|
}
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
|
|
Ładowanie…
Reference in New Issue