When filter on public group events, exclude draft events as well

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-22 16:58:18 +02:00
parent d6b2b068be
commit fd711c4d12

View File

@ -1704,7 +1704,7 @@ defmodule Mobilizon.Events do
defp event_filter_visibility(query, :public) do
query
|> where(visibility: ^:public)
|> where(visibility: ^:public, draft: false)
end
defp event_filter_begins_on(query, nil, nil),