When filter on public group events, exclude draft events as well
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
40174090f8
commit
d8185660e3
|
@ -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),
|
||||
|
|
Loading…
Reference in a new issue