pixelfed sends attachments as Image.

as most implementations probably should actually.
This commit is contained in:
Ted Unangst 2019-05-01 14:25:06 -04:00
parent 60656bf17b
commit dee1eda34e
1 changed files with 1 additions and 1 deletions

View File

@ -523,7 +523,7 @@ func xonkxonk(user *WhatAbout, item interface{}) *Honk {
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" ||