only dumb it down for images, stuff like PDF should retain name

This commit is contained in:
Ted Unangst 2023-03-09 02:00:12 -05:00
parent dab8de6670
commit a857fdd06c
1 changed files with 1 additions and 1 deletions

View File

@ -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)