kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1779 from nextcloud/fix/noid/update-displayname-only-when-needed
update details onlypull/1783/head
commit
28e64fb04b
|
@ -318,7 +318,7 @@ class AccountService {
|
|||
}
|
||||
|
||||
$this->addLocalActorDetailCount($actor);
|
||||
$this->actorService->cacheLocalActor($actor);
|
||||
$this->actorService->cacheLocalActorDetails($actor);
|
||||
}
|
||||
|
||||
|
||||
|
@ -348,7 +348,7 @@ class AccountService {
|
|||
*
|
||||
* @throws NoUserException
|
||||
*/
|
||||
private function updateCacheLocalActorName(Person &$actor) {
|
||||
private function updateCacheLocalActorName(Person $actor) {
|
||||
$user = $this->userManager->get($actor->getUserId());
|
||||
if ($user === null) {
|
||||
throw new NoUserException();
|
||||
|
|
|
@ -101,6 +101,16 @@ class ActorService {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param Person $actor
|
||||
*
|
||||
* @throws ItemAlreadyExistsException
|
||||
*/
|
||||
public function cacheLocalActorDetails(Person $actor) {
|
||||
$this->cacheActorsRequest->updateDetails($actor);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param Person $actor
|
||||
*
|
||||
|
|
Ładowanie…
Reference in New Issue