all repos — honk @ 192aa222512284c16f8077fb4d42791f6ee2a015

my fork of honk

test function to undo the bloat
Ted Unangst tedu@tedunangst.com
Thu, 15 Aug 2019 23:03:21 -0400
commit

192aa222512284c16f8077fb4d42791f6ee2a015

parent

5f108eceda00a5c93368d6218beab5b2c157441c

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

jump to
M bloat.gobloat.go

@@ -102,3 +102,7 @@ func bloat_iscounter(honk *Honk) bool {

return strings.Contains(honk.Noise, "<bloat_counter>") } +func bloat_undocounter() { + db := opendatabase() + db.Exec("update honks set noise = 'This post has expired' where noise like '%<bloat_counter>%' and whofore = 2 and what = 'honk'") +}
M honk.gohonk.go

@@ -1634,6 +1634,7 @@ stmtRecentHonkers = preparetodie(db, "select distinct(honker) from honks where userid = ? and honker not in (select xid from honkers where userid = ? and flavor = 'sub') order by honkid desc limit 100")

} func ElaborateUnitTests() { + bloat_undocounter() } func main() {