fix(og): remove unused helper; build

This commit is contained in:
Thomas Cravey 2025-08-16 19:55:15 -05:00
parent 83b3446239
commit 0732b50a3d

View file

@ -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