gallery: sort by earliest post date across all posts (new default) #178
Reference in New Issue
Block a user
Delete Branch "dev"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The gallery led with download dates because newest/oldest key off
effective_date= the PRIMARY post's date (often the repost/download the file came from). Adds a materializedearliest_post_date= MIN(post_date) across ALL of an image's provenance posts (original publish), mirroring the effective_date pattern so the sort stays an index scan.earliest_post_datecolumn + index (DESC, id DESC); backfill created_at baseline then MIN over image_provenance ⋈ post.posted_new/posted_old; cursor + year/month grouping follow the active column.posted_new|posted_old; default is nowposted_newso the grid leads with original publish date. newest/oldest (effective_date) still available.CI green on dev (run 1824, incl. integration + migration). No behavioral risk to existing sorts.
🤖 Generated with Claude Code