Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
pull/752/head
Maxence Lange 2019-09-23 10:34:16 +02:00
rodzic 24a53b5cfe
commit 3ee1aba67d
3 zmienionych plików z 9 dodań i 7 usunięć

Wyświetl plik

@ -280,8 +280,8 @@ class AccountService {
*/
public function addLocalActorDetailCount(Person &$actor) {
$count = [
'followers' => $this->followsRequest->countFollowers($actor->getId()),
'following' => $this->followsRequest->countFollowing($actor->getId()),
'followers' => $this->followsRequest->countFollowers($actor->getId()) - 1,
'following' => $this->followsRequest->countFollowing($actor->getId()) - 1,
'post' => $this->streamRequest->countNotesFromActorId($actor->getId())
];
$actor->setDetailArray('count', $count);

Wyświetl plik

@ -210,9 +210,12 @@ class CheckService {
];
}
$this->checkStatusTableFollows();
$this->checkStatusTableStreamDest();
$this->checkLocalAccountFollowingItself();
// $this->checkStatusTableFollows();
// $this->checkStatusTableStreamDest();
try {
$this->checkLocalAccountFollowingItself();
} catch (Exception $e) {
}
return $result;
}

Wyświetl plik

@ -93,8 +93,7 @@ class FollowService {
*/
public function __construct(
FollowsRequest $followsRequest, ActivityService $activityService,
CacheActorService $cacheActorService,
ConfigService $configService, MiscService $miscService
CacheActorService $cacheActorService, ConfigService $configService, MiscService $miscService
) {
$this->followsRequest = $followsRequest;
$this->activityService = $activityService;