diff --git a/activity.go b/activity.go index 6e14100..ac152ef 100644 --- a/activity.go +++ b/activity.go @@ -180,6 +180,10 @@ func savedonk(url string, name, media string, localize bool) *Donk { } data = img.Data media = "image/" + img.Format + } else if len(data) > 100000 { + log.Printf("not saving large attachment") + localize = false + data = []byte{} } } saveit: