reset currettid too

This commit is contained in:
Ted Unangst 2019-10-03 12:37:15 -04:00
parent bcb36d8cff
commit 73d6331c2d
1 changed files with 3 additions and 2 deletions

View File

@ -149,11 +149,11 @@ func savedonk(url string, name, desc, media string, localize bool) *Donk {
goto saveit goto saveit
} }
var buf bytes.Buffer var buf bytes.Buffer
limiter := io.LimitReader(resp.Body, 10 * 1024 * 1024) limiter := io.LimitReader(resp.Body, 10*1024*1024)
io.Copy(&buf, limiter) io.Copy(&buf, limiter)
data = buf.Bytes() data = buf.Bytes()
if len(data) == 10 * 1024 * 1024 { if len(data) == 10*1024*1024 {
log.Printf("truncation likely") log.Printf("truncation likely")
} }
if strings.HasPrefix(media, "image") { if strings.HasPrefix(media, "image") {
@ -827,6 +827,7 @@ func xonksaver(user *WhatAbout, item junk.Junk, origin string) *Honk {
} }
if convoy == "" { if convoy == "" {
convoy = "missing-" + xfiltrate() convoy = "missing-" + xfiltrate()
currenttid = convoy
} }
xonk.Convoy = convoy xonk.Convoy = convoy
savexonk(&xonk) savexonk(&xonk)