fix(og): remove unused helper; build
This commit is contained in:
parent
83b3446239
commit
0732b50a3d
1 changed files with 0 additions and 1 deletions
|
|
@ -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 }
|
if err != nil { w.WriteHeader(http.StatusBadGateway); _, _ = w.Write([]byte("parse error")); return }
|
||||||
var title, desc, img string
|
var title, desc, img string
|
||||||
var walker func(*xhtml.Node)
|
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) {
|
walker = func(n *xhtml.Node) {
|
||||||
if n.Type == xhtml.ElementNode && strings.EqualFold(n.Data, "meta") {
|
if n.Type == xhtml.ElementNode && strings.EqualFold(n.Data, "meta") {
|
||||||
// property or name + content
|
// property or name + content
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue