fix following count

This commit is contained in:
Kharlova Daria 2016-08-19 17:20:38 +05:00
parent 0a6225b2b2
commit ac78facecf

View File

@ -69,7 +69,7 @@ class ProfileHeader extends \yii\base\Widget
$countFriends = Friendship::getFriendsQuery($this->user)->count();
}
$countFollowing = $this->user->getFollowingCount(User::className()) + $this->user->getFollowingCount(Space::className());
$countFollowing = $this->user->getFollowingCount(User::className());
$countUserSpaces = Membership::getUserSpaceQuery($this->user)
->andWhere(['!=', 'space.visibility', Space::VISIBILITY_NONE])