Narrow a raw cause-level fundraising-event list down to the events
that belong to the current Play Live season, newest first.
Tiltify's cause endpoint returns every event it still lists — years
of history — so an event picker needs a season filter. An event is
kept when it is publishedand any of:
it was published in the current calendar year; or
its name contains the current year (catches events created early,
e.g. "PLAY LIVE 2026" published in Dec 2025); or
it was published in Nov / Dec of the previous year (the Play
Live season opens before New Year).
Ordering is by published_at descending, with never-published
events sorted last.
Extracted from playlive-layout-builder's
useTiltifyCurrentEvents so every consumer applies the same rule.
Narrow a raw cause-level fundraising-event list down to the events that belong to the current Play Live season, newest first.
Tiltify's cause endpoint returns every event it still lists — years of history — so an event picker needs a season filter. An event is kept when it is
publishedand any of:Ordering is by
published_atdescending, with never-published events sorted last.Extracted from
playlive-layout-builder'suseTiltifyCurrentEventsso every consumer applies the same rule.