kopia lustrzana https://github.com/nextcloud/social
				
				
				
			require published_scope to access display name
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/1718/head
							rodzic
							
								
									e40bcb95cd
								
							
						
					
					
						commit
						22cd87bf5d
					
				| 
						 | 
				
			
			@ -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) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Ładowanie…
	
		Reference in New Issue