summaryrefslogtreecommitdiff
path: root/public/stylesheets/resources
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-07-13 17:09:45 +0200
committererdgeist <erdgeist@erdgeist.org>2026-07-13 17:09:45 +0200
commit40adeec1bcc6fa276d765e3b9c37e781c64a48c1 (patch)
treef5fadc4a3edee53b5338b428f0a106036f32d76d /public/stylesheets/resources
parentaa14587b052a0aa7884aaf27183981975168ab14 (diff)
Fix shared preview redirecting to admin for an ordinary new drafterdgeist-revive-events
superseded/currently_public used published_at presence as a proxy for page-row relevance, but published_at is carried forward onto every new draft descended from previously-published content (Page#clone_attributes_from, Node#save_draft!) -- so it read true for any draft on an already-published node, whether or not that specific draft had ever gone live itself. Compare draft_id/head_id identity directly instead; no timestamp involved. A stale (superseded) link now redirects to the live public page rather than an admin URL an anonymous holder can't reach anyway.
Diffstat (limited to 'public/stylesheets/resources')
0 files changed, 0 insertions, 0 deletions