all repos — honk @ 6fb26595fca326111fe1d6e27378b215fc848181

my fork of honk

real world indicates we need to go farther back...
Ted Unangst tedu@tedunangst.com
Tue, 29 Oct 2019 19:23:07 -0400
commit

6fb26595fca326111fe1d6e27378b215fc848181

parent

d893465f775e70a9e59c6cf5046ac85f5001d813

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

jump to
M database.godatabase.go

@@ -749,7 +749,7 @@ stmtAddDoover = preparetodie(db, "insert into doovers (dt, tries, userid, rcpt, msg) values (?, ?, ?, ?, ?)")

stmtGetDoovers = preparetodie(db, "select dooverid, dt from doovers") stmtLoadDoover = preparetodie(db, "select tries, userid, rcpt, msg from doovers where dooverid = ?") stmtZapDoover = preparetodie(db, "delete from doovers where dooverid = ?") - stmtUntagged = preparetodie(db, "select xid, rid, flags from (select honkid, xid, rid, flags from honks where userid = ? order by honkid desc limit 2000) order by honkid asc") + stmtUntagged = preparetodie(db, "select xid, rid, flags from (select honkid, xid, rid, flags from honks where userid = ? order by honkid desc limit 10000) order by honkid asc") stmtFindZonk = preparetodie(db, "select zonkerid from zonkers where userid = ? and name = ? and wherefore = 'zonk'") stmtGetZonkers = preparetodie(db, "select zonkerid, name, wherefore from zonkers where userid = ? and wherefore <> 'zonk'") stmtSaveZonker = preparetodie(db, "insert into zonkers (userid, name, wherefore) values (?, ?, ?)")
M web.goweb.go

@@ -1115,7 +1115,10 @@ if err != nil {

log.Printf("error untagging: %s", err) } } - untagged.Clear(userinfo.UserID) + var badparents map[string]bool + untagged.GetAndLock(userinfo.UserID, &badparents) + badparents[what] = true + untagged.Unlock() return }