kopia lustrzana https://github.com/nextcloud/social
update details only
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>pull/1779/head
rodzic
18790fb914
commit
87264d44bd
|
@ -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