better handling of Link attachment types
This commit is contained in:
parent
d63e338089
commit
d622d8781a
|
@ -882,6 +882,14 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
|
||||||
localize = true
|
localize = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else if at == "Link" {
|
||||||
|
if waspage {
|
||||||
|
xonk.Noise += fmt.Sprintf(`<p><a href="%s">%s</a>`, u, u)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
if name == "" {
|
||||||
|
name = u
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
ilog.Printf("unknown attachment: %s", at)
|
ilog.Printf("unknown attachment: %s", at)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue