From 7ac90f8e99dbf763b0fe04a17d7eef19dd22cae8 Mon Sep 17 00:00:00 2001 From: grm Date: Fri, 18 Sep 2026 14:35:59 +0300 Subject: Revert "Special pages: a gallery page of the blog's images" This reverts commit 0fc470a. The feature was not wanted. Migration 00013 stays on disk because databases have already run it (goose refuses a missing applied migration); 00014 drops the column and table it added. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01Sd8UPWrvyYCLj97JexNw3A --- internal/web/handlers_posts.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/web/handlers_posts.go') diff --git a/internal/web/handlers_posts.go b/internal/web/handlers_posts.go index 0c34198..8a54c31 100644 --- a/internal/web/handlers_posts.go +++ b/internal/web/handlers_posts.go @@ -89,8 +89,8 @@ func (s *Server) handlePostForm(w http.ResponseWriter, r *http.Request) { } } else if pid, _ := strconv.ParseInt(r.URL.Query().Get("page"), 10, 64); pid != 0 { p.PageID = pid - } else if hp, err := blogStore(r).HomePage(r.Context()); err == nil && !hp.Special() { - p.PageID = hp.ID // a gallery home page takes no posts: the select's first page stands in + } else if hp, err := blogStore(r).HomePage(r.Context()); err == nil { + p.PageID = hp.ID } d, err := s.postFormData(r, p) if err != nil { @@ -153,7 +153,7 @@ func (s *Server) handlePostSave(w http.ResponseWriter, r *http.Request) { } pageOK := false for _, pg := range pages { - if pg.ID == p.PageID && !pg.Special() { + if pg.ID == p.PageID { pageOK = true } } -- cgit v1.2.3