diff --git a/Web/Models/Repositories/Videos.php b/Web/Models/Repositories/Videos.php index 2bb459d8..1bfc08da 100644 --- a/Web/Models/Repositories/Videos.php +++ b/Web/Models/Repositories/Videos.php @@ -43,6 +43,6 @@ class Videos function getUserVideosCount(User $user): int { - return sizeof($this->videos->where("owner", $user->getId())->where("deleted", 0)); + return sizeof($this->videos->where("owner", $user->getId())->where(["deleted" => 0, "unlisted" => 0])); } }