diff --git a/lib/mobilizon/events/events.ex b/lib/mobilizon/events/events.ex index 91e683dbf..a489d9a86 100644 --- a/lib/mobilizon/events/events.ex +++ b/lib/mobilizon/events/events.ex @@ -1774,6 +1774,7 @@ defmodule Mobilizon.Events do |> distinct([e], e.id) |> join(:left, [e], et in "events_tags", on: e.id == et.event_id) |> join(:left, [e], a in Address, on: e.physical_address_id == a.id) + |> filter_future_events(true) |> filter_draft() |> filter_local_or_from_followed_instances_events() |> filter_public_visibility() diff --git a/src/views/Event/EventView.vue b/src/views/Event/EventView.vue index d87198c40..9f79acdbf 100755 --- a/src/views/Event/EventView.vue +++ b/src/views/Event/EventView.vue @@ -243,12 +243,12 @@

{{ t("These events may interest you") }}

- +
import("@/components/Event/Integrations/TwitchIntegration.vue") @@ -612,17 +611,6 @@ const organizerDomain = computed((): string | undefined => { return organizer.value?.domain ?? undefined; }); -const nonPassedRelatedEvents = computed((): IEvent[] | undefined => { - const relatedEvents = event.value?.relatedEvents; - - return relatedEvents?.filter((relatedEvent: IEvent) => { - const endsOn = relatedEvent.endsOn - ? new Date(relatedEvent.endsOn) - : new Date(relatedEvent.beginsOn); - return endsOn > new Date(); - }); -}); - useHead({ title: computed(() => eventTitle.value ?? ""), meta: [{ name: "description", content: eventDescription.value }],