From 0732b50a3dec24f288a5e1ac09826e5fa71a04dd Mon Sep 17 00:00:00 2001 From: Thomas Cravey Date: Sat, 16 Aug 2025 19:55:15 -0500 Subject: [PATCH] fix(og): remove unused helper; build --- internal/httpapi/server.go | 1 - 1 file changed, 1 deletion(-) diff --git a/internal/httpapi/server.go b/internal/httpapi/server.go index 4c40912..acbad20 100644 --- a/internal/httpapi/server.go +++ b/internal/httpapi/server.go @@ -230,7 +230,6 @@ func (s *Server) handleLinkCard(w http.ResponseWriter, r *http.Request) { if err != nil { w.WriteHeader(http.StatusBadGateway); _, _ = w.Write([]byte("parse error")); return } var title, desc, img string var walker func(*xhtml.Node) - getAttr := func(n *xhtml.Node, key string) string { for a := n.Attr; a != nil && len(n.Attr) > 0; a = nil { for _, at := range n.Attr { if strings.EqualFold(at.Key, key) { return at.Val } } ; return "" } } walker = func(n *xhtml.Node) { if n.Type == xhtml.ElementNode && strings.EqualFold(n.Data, "meta") { // property or name + content