From 7e4896a0d31a48787db59a4f97aea03ea5a7d54d Mon Sep 17 00:00:00 2001 From: celestora Date: Sun, 17 Oct 2021 12:03:31 +0300 Subject: [PATCH] Videos: Fix pagination in videos --- Web/Models/Repositories/Videos.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])); } }