fixing var name

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/340/head
Maxence Lange 2019-01-16 12:00:59 -01:00
rodzic 2247e2482c
commit 3a1ccc4c87
4 zmienionych plików z 13 dodań i 13 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ class CacheRefresh extends Base {
/** @var AccountService */
private $actorService;
private $accountService;
/** @var CacheActorService */
private $cacheActorService;
@ -64,19 +64,19 @@ class CacheRefresh extends Base {
/**
* CacheUpdate constructor.
*
* @param AccountService $actorService
* @param AccountService $accountService
* @param CacheActorService $cacheActorService
* @param DocumentService $documentService
* @param ConfigService $configService
* @param MiscService $miscService
*/
public function __construct(
AccountService $actorService, CacheActorService $cacheActorService,
AccountService $accountService, CacheActorService $cacheActorService,
DocumentService $documentService, ConfigService $configService, MiscService $miscService
) {
parent::__construct();
$this->actorService = $actorService;
$this->accountService = $accountService;
$this->cacheActorService = $cacheActorService;
$this->documentService = $documentService;
$this->configService = $configService;
@ -102,10 +102,10 @@ class CacheRefresh extends Base {
*/
protected function execute(InputInterface $input, OutputInterface $output) {
$result = $this->actorService->blindKeyRotation();
$result = $this->accountService->blindKeyRotation();
$output->writeLn($result . ' key pairs refreshed');
$result = $this->actorService->manageCacheLocalActors();
$result = $this->accountService->manageCacheLocalActors();
$output->writeLn($result . ' local accounts regenerated');
$result = $this->cacheActorService->missingCacheRemoteActors();

Wyświetl plik

@ -54,7 +54,7 @@ class NoteCreate extends Base {
private $activityService;
/** @var AccountService */
private $actorService;
private $accountService;
/** @var PostService */
private $postService;
@ -70,21 +70,21 @@ class NoteCreate extends Base {
* NoteCreate constructor.
*
* @param ActivityService $activityService
* @param AccountService $actorService
* @param AccountService $accountService
* @param PostService $postService
* @param CurlService $curlService
* @param ConfigService $configService
* @param MiscService $miscService
*/
public function __construct(
ActivityService $activityService, AccountService $actorService,
ActivityService $activityService, AccountService $accountService,
PostService $postService, CurlService $curlService,
ConfigService $configService, MiscService $miscService
) {
parent::__construct();
$this->activityService = $activityService;
$this->actorService = $actorService;
$this->accountService = $accountService;
$this->postService = $postService;
$this->curlService = $curlService;
$this->configService = $configService;

Wyświetl plik

@ -397,9 +397,9 @@ class LocalController extends Controller {
$this->initViewer();
$actor = $this->accountService->getActorFromUserId($this->userId);
$followers = $this->followService->getFollowing($actor);
$following = $this->followService->getFollowing($actor);
return $this->success($followers);
return $this->success($following);
} catch (Exception $e) {
return $this->fail($e);
}

Wyświetl plik

@ -130,7 +130,7 @@ class ActivityService {
* @param ACore $activity
*
* @return string
* @throws Exception
* @throws SocialAppConfigException
*/
public function createActivity(Person $actor, ACore $item, ACore &$activity = null): string {