Skip to content

Filter out content with future publishedAt dates from frontend #1092

@busbyk

Description

@busbyk

Description

Currently, content with a publishedAt date set in the future is still displayed on the frontend. We should respect the publishedAt field and filter out content that hasn't reached its publish date yet.

This would enable editors to schedule content for future publication by setting a publishedAt date in the future.

Collections affected

  • Posts (used for blog sorting and date display)
  • Pages
  • HomePages

What needs to happen

  1. Frontend queries should filter by publishedAt <= now (or publishedAt is null/not set)
  2. Consider whether this should also apply to ISR/caching — content with future dates would need revalidation when the publish date arrives
  3. Consider adding a "Scheduled" status indicator in the admin UI for content with future publishedAt dates

Context

Raised while working on #878 (publishedAt field standardization). The Pages collection previously had a misleading description claiming publishedAt "affects the page's visibility and can be used for scheduling future publications" — but this was never actually implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions