diff --git a/lib/mobilizon/events/events.ex b/lib/mobilizon/events/events.ex index 7ab4f0bc1..2ecf9c455 100644 --- a/lib/mobilizon/events/events.ex +++ b/lib/mobilizon/events/events.ex @@ -1632,6 +1632,10 @@ defmodule Mobilizon.Events do def category_statistics do Event + |> filter_future_events(true) + |> filter_public_visibility() + |> filter_draft() + |> filter_cancelled_events() |> filter_local_or_from_followed_instances_events() |> group_by([e], e.category) |> select([e], {e.category, count(e.id)})