From a1bbd780cb860cae05e74d8acd99b9171bda6005 Mon Sep 17 00:00:00 2001 From: duong Date: Fri, 8 Nov 2024 17:03:26 -0500 Subject: [PATCH] Hide unlisted videos from channel --- lib/algora/library.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/algora/library.ex b/lib/algora/library.ex index 617d2d6e..46b84c6c 100644 --- a/lib/algora/library.ex +++ b/lib/algora/library.ex @@ -783,7 +783,8 @@ defmodule Algora.Library do where: not is_nil(v.url) and is_nil(v.transmuxed_from_id) and - v.user_id == ^channel.user_id + v.user_id == ^channel.user_id and + v.visibility == :public ) |> Video.not_deleted() |> order_by_live()