Fix events tests with public visibility
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
parent
42a6aa627e
commit
8c8f69c665
@ -356,11 +356,12 @@ defmodule Mobilizon.Events do
|
|||||||
query = from(e in Event, preload: [:organizer_actor, :participants])
|
query = from(e in Event, preload: [:organizer_actor, :participants])
|
||||||
|
|
||||||
query
|
query
|
||||||
|> Page.paginate(page, limit)
|
|
||||||
|> sort(sort, direction)
|
|> sort(sort, direction)
|
||||||
|> filter_future_events(is_future)
|
|> filter_future_events(is_future)
|
||||||
|
|> filter_public_visibility()
|
||||||
|> filter_draft()
|
|> filter_draft()
|
||||||
|> filter_local_or_from_followed_instances_events()
|
|> filter_local_or_from_followed_instances_events()
|
||||||
|
|> Page.paginate(page, limit)
|
||||||
|> Repo.all()
|
|> Repo.all()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user