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
d6b2b068be
commit
fd711c4d12
@ -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 New Issue
Block a user