pixelfed sends attachments as Image. as most implementations probably should actually.
Ted Unangst tedu@tedunangst.com
Wed, 01 May 2019 14:25:06 -0400
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
activity.go
→
activity.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" ||