diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index bee8527..1661085 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -197,7 +197,12 @@ func (s *Server) handleTail(w http.ResponseWriter, r *http.Request) { } } // Simple link card structure -type linkCard struct{ URL, Title, Description, Image string } +type linkCard struct{ + URL string `json:"url"` + Title string `json:"title"` + Description string `json:"description"` + Image string `json:"image"` +} // handleLinkCard fetches basic OpenGraph/Twitter card metadata (best-effort) and returns a small card. func (s *Server) handleLinkCard(w http.ResponseWriter, r *http.Request) { @@ -403,7 +408,7 @@ func (s *Server) handleSummarizerUI(w http.ResponseWriter, r *http.Request) { } } w.Header().Set("Content-Type", "text/html; charset=utf-8") - page := `Summarizer · sojuboy

On-demand summarization

` + page := `Summarizer · sojuboy

On-demand summarization

` _, _ = w.Write([]byte(page)) }