From af2deab137abf72a8ec0fb7cc4b02cae5689a15e Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 9 Mar 2023 12:32:53 -0500 Subject: [PATCH] revert to sending summary for images, it should work --- activity.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/activity.go b/activity.go index 60d9fcf..64e1ae9 100644 --- a/activity.go +++ b/activity.go @@ -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["name"] = d.Name + jd["summary"] = html.EscapeString(d.Desc) jd["type"] = "Document" jd["url"] = d.URL atts = append(atts, jd)