mirror of
https://github.com/humhub/humhub.git
synced 2025-02-22 18:22:43 +01:00
fix following count
This commit is contained in:
parent
0a6225b2b2
commit
ac78facecf
@ -69,7 +69,7 @@ class ProfileHeader extends \yii\base\Widget
|
|||||||
$countFriends = Friendship::getFriendsQuery($this->user)->count();
|
$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)
|
$countUserSpaces = Membership::getUserSpaceQuery($this->user)
|
||||||
->andWhere(['!=', 'space.visibility', Space::VISIBILITY_NONE])
|
->andWhere(['!=', 'space.visibility', Space::VISIBILITY_NONE])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user