all repos — honk @ 687789837e21cf8354f325551bbfc5f3b26a8c5a

my fork of honk

don't cleanup private files either
Ted Unangst tedu@tedunangst.com
Tue, 28 May 2019 04:00:58 -0400
commit

687789837e21cf8354f325551bbfc5f3b26a8c5a

parent

f839ca230e0bb44bb839061052995ab43e0d5fed

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M honk.gohonk.go

@@ -1325,7 +1325,7 @@ doordie(db, "delete from honks where userid = ? and convoy = ?", userid, t)

} } expdate := time.Now().UTC().Add(-30 * 24 * time.Hour).Format(dbtimeformat) - doordie(db, "update files set content = '', local = 0 where length(content) > 20000 and fileid in (select fileid from donks join honks on donks.honkid = honks.honkid where honks.dt < ? and whofore = 0) and fileid not in (select fileid from donks join honks on donks.honkid = honks.honkid where whofore = 2)", expdate) + doordie(db, "update files set content = '', local = 0 where length(content) > 20000 and fileid in (select fileid from donks join honks on donks.honkid = honks.honkid where honks.dt < ? and whofore = 0) and fileid not in (select fileid from donks join honks on donks.honkid = honks.honkid where whofore = 2 or whofore = 3)", expdate) doordie(db, "delete from files where fileid not in (select fileid from donks)") }