summaryrefslogtreecommitdiffstats
path: root/lib/Service
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2019-09-23 10:34:16 +0200
committerMaxence Lange <maxence@artificial-owl.com>2019-09-23 10:34:16 +0200
commit3ee1aba67dab40b5d050082adb1f85645dc80f52 (patch)
tree4537cf235012e10ac15952b0ae55943ca296d434 /lib/Service
parent24a53b5cfe34d4213f458593f3097fec12674eb7 (diff)
cleaning
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib/Service')
-rw-r--r--lib/Service/AccountService.php4
-rw-r--r--lib/Service/CheckService.php9
-rw-r--r--lib/Service/FollowService.php3
3 files changed, 9 insertions, 7 deletions
diff --git a/lib/Service/AccountService.php b/lib/Service/AccountService.php
index de3214d1..774c5772 100644
--- a/lib/Service/AccountService.php
+++ b/lib/Service/AccountService.php
@@ -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);
diff --git a/lib/Service/CheckService.php b/lib/Service/CheckService.php
index 60eb501b..912401e8 100644
--- a/lib/Service/CheckService.php
+++ b/lib/Service/CheckService.php
@@ -210,9 +210,12 @@ class CheckService {
];
}
- $this->checkStatusTableFollows();
- $this->checkStatusTableStreamDest();
- $this->checkLocalAccountFollowingItself();
+// $this->checkStatusTableFollows();
+// $this->checkStatusTableStreamDest();
+ try {
+ $this->checkLocalAccountFollowingItself();
+ } catch (Exception $e) {
+ }
return $result;
}
diff --git a/lib/Service/FollowService.php b/lib/Service/FollowService.php
index 0c677d35..a4f4b033 100644
--- a/lib/Service/FollowService.php
+++ b/lib/Service/FollowService.php
@@ -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;