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
|
defp event_filter_visibility(query, :public) do
|
||||||
query
|
query
|
||||||
|> where(visibility: ^:public)
|
|> where(visibility: ^:public, draft: false)
|
||||||
end
|
end
|
||||||
|
|
||||||
defp event_filter_begins_on(query, nil, nil),
|
defp event_filter_begins_on(query, nil, nil),
|
||||||
|
Loading…
Reference in New Issue
Block a user