revert to sending summary for images, it should work

This commit is contained in:
Ted Unangst 2023-03-09 12:32:53 -05:00
parent a857fdd06c
commit af2deab137
1 changed files with 2 additions and 7 deletions

View File

@ -1142,13 +1142,8 @@ func activatedonks(donks []*Donk) []junk.Junk {
}
jd := junk.New()
jd["mediaType"] = d.Media
if !strings.Contains(d.Media, "image") {
// nobody does this right
jd["name"] = d.Name
jd["summary"] = html.EscapeString(d.Desc)
} else {
jd["name"] = d.Desc
}
jd["type"] = "Document"
jd["url"] = d.URL
atts = append(atts, jd)