Videos: Fix pagination in videos

This commit is contained in:
celestora 2021-10-17 12:03:31 +03:00 committed by GitHub
parent ddce88ba7f
commit 7e4896a0d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,6 +43,6 @@ class Videos
function getUserVideosCount(User $user): int 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]));
} }
} }