From 73d6331c2d3bed1579cbfc62d560a407aeeb188a Mon Sep 17 00:00:00 2001 From: Ted Unangst Date: Thu, 3 Oct 2019 12:37:15 -0400 Subject: [PATCH] reset currettid too --- activity.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/activity.go b/activity.go index 60dd833..0bd691e 100644 --- a/activity.go +++ b/activity.go @@ -149,11 +149,11 @@ func savedonk(url string, name, desc, media string, localize bool) *Donk { goto saveit } var buf bytes.Buffer - limiter := io.LimitReader(resp.Body, 10 * 1024 * 1024) + limiter := io.LimitReader(resp.Body, 10*1024*1024) io.Copy(&buf, limiter) data = buf.Bytes() - if len(data) == 10 * 1024 * 1024 { + if len(data) == 10*1024*1024 { log.Printf("truncation likely") } if strings.HasPrefix(media, "image") { @@ -827,6 +827,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk { } if convoy == "" { convoy = "missing-" + xfiltrate() + currenttid = convoy } xonk.Convoy = convoy savexonk(&xonk)