all repos — honk @ 9f467635e29a5cadbc877e88d5b6a359b59b3940

my fork of honk

preserve threads we've participated in
Ted Unangst tedu@tedunangst.com
Sun, 02 Jun 2019 20:52:16 -0400
commit

9f467635e29a5cadbc877e88d5b6a359b59b3940

parent

71b3450369a11d2939d7af895890962a3fc26b86

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

jump to
M honk.gohonk.go

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

} } expdate := time.Now().UTC().Add(-30 * 24 * time.Hour).Format(dbtimeformat) - doordie(db, "delete from donks where honkid in (select honkid from honks where dt < ? and whofore = 0)", expdate) - doordie(db, "delete from honks where dt < ? and whofore = 0", expdate) + doordie(db, "delete from donks where honkid in (select honkid from honks where dt < ? and whofore = 0 and convoy not in (select convoy from honks where whofore = 2 or whofore = 3))", expdate) + doordie(db, "delete from honks where dt < ? and whofore = 0 and convoy not in (select convoy from honks where whofore = 2 or whofore = 3)", expdate) doordie(db, "delete from files where fileid not in (select fileid from donks)") }