update details only

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/1779/head
Maxence Lange 2023-06-13 16:04:23 -01:00
rodzic 18790fb914
commit 87264d44bd
2 zmienionych plików z 12 dodań i 2 usunięć

Wyświetl plik

@ -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();

Wyświetl plik

@ -101,6 +101,16 @@ class ActorService {
}
/**
* @param Person $actor
*
* @throws ItemAlreadyExistsException
*/
public function cacheLocalActorDetails(Person $actor) {
$this->cacheActorsRequest->updateDetails($actor);
}
/**
* @param Person $actor
*