From a857fdd06cece7b5a72d1fe3bf9e65cdc49d8c32 Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 9 Mar 2023 02:00:12 -0500 Subject: [PATCH] only dumb it down for images, stuff like PDF should retain name --- activity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activity.go b/activity.go index ba88227..60d9fcf 100644 --- a/activity.go +++ b/activity.go @@ -1142,7 +1142,7 @@ func activatedonks(donks []*Donk) []junk.Junk { } jd := junk.New() jd["mediaType"] = d.Media - if false { + if !strings.Contains(d.Media, "image") { // nobody does this right jd["name"] = d.Name jd["summary"] = html.EscapeString(d.Desc)