From dea5e5d24c3e1db20c7f83f6e2b61521addb52f4 Mon Sep 17 00:00:00 2001 From: 778a69cd <778a69cd@potsda.mn> Date: Wed, 15 Mar 2023 19:25:22 +0100 Subject: [PATCH] display events on startpage until they end Co-authored-by: unkonkret --- lib/mobilizon/events/events.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mobilizon/events/events.ex b/lib/mobilizon/events/events.ex index 8287b4e9d..5b7e462ae 100644 --- a/lib/mobilizon/events/events.ex +++ b/lib/mobilizon/events/events.ex @@ -1663,7 +1663,7 @@ defmodule Mobilizon.Events do @spec filter_future_events(Ecto.Queryable.t(), boolean) :: Ecto.Query.t() defp filter_future_events(query, true) do from(q in query, - where: q.begins_on > ^DateTime.utc_now() + where: q.ends_on > ^DateTime.utc_now() ) end