Hide Comments on Draft Works and Chapters
Worked On
Merged contribution to otwarchive, the open-source Rails platform behind Archive of Our Own (AO3-7185).
Readers could comment on unpublished draft works and chapters. Fixed it in two layers: the view hides the comment form on drafts, and the controller rejects comment creation outright so the guard still holds when the UI is bypassed. Multi-chapter works keep comments on published chapters only.
Impact: Closed a gap that let comments land on content authors had not published yet. Shipped with Cucumber and controller specs, plus translated error strings.
Client
Archive of Our Own (OTW) (2025)
Technologies
Skills