mirror of
https://github.com/humhub/humhub.git
synced 2025-01-17 22:28:51 +01:00
Fixed Spacechooser message counter.
This commit is contained in:
parent
58332fc438
commit
b173035610
@ -133,11 +133,10 @@ class Membership extends \yii\db\ActiveRecord
|
||||
public function countNewItems($since = "")
|
||||
{
|
||||
$query = \humhub\modules\content\models\Content::find();
|
||||
$query->where(['!=', 'object_model', \humhub\modules\activity\widgets\Activity::className()]);
|
||||
$query->where(['!=', 'object_model', \humhub\modules\activity\models\Activity::class]);
|
||||
$query->andWhere(['contentcontainer_id' => $this->space->contentContainerRecord->id]);
|
||||
$query->andWhere(['>', 'created_at', $this->last_visit]);
|
||||
$count = $query->count();
|
||||
return $count;
|
||||
return $query->count();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user