kopia lustrzana https://github.com/nextcloud/social
rodzic
24a53b5cfe
commit
3ee1aba67d
|
@ -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);
|
||||
|
|
|
@ -210,9 +210,12 @@ class CheckService {
|
|||
];
|
||||
}
|
||||
|
||||
$this->checkStatusTableFollows();
|
||||
$this->checkStatusTableStreamDest();
|
||||
$this->checkLocalAccountFollowingItself();
|
||||
// $this->checkStatusTableFollows();
|
||||
// $this->checkStatusTableStreamDest();
|
||||
try {
|
||||
$this->checkLocalAccountFollowingItself();
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Ładowanie…
Reference in New Issue