all repos — honk @ 59d974b2de429b4635b00d0d9b54361a688e0e3f

my fork of honk

pixelfed sends attachments as Image.
as most implementations probably should actually.
Ted Unangst tedu@tedunangst.com
Wed, 01 May 2019 14:25:06 -0400
commit

59d974b2de429b4635b00d0d9b54361a688e0e3f

parent

e36fb00745bc383eaedc20903c32be6104b8e7d7

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M activity.goactivity.go

@@ -523,7 +523,7 @@ at, _ := jsongetstring(att, "type")

mt, _ := jsongetstring(att, "mediaType") u, _ := jsongetstring(att, "url") name, _ := jsongetstring(att, "name") - if at == "Document" { + if at == "Document" || at == "Image" { mt = strings.ToLower(mt) log.Printf("attachment: %s %s", mt, u) if mt == "image/jpeg" || mt == "image/png" ||