all repos — honk @ c203aa0258fa3cd9f99a550e4e0c00e7140022cd

my fork of honk

random fiddling with numbers. no real reason.
Ted Unangst tedu@tedunangst.com
Wed, 13 Nov 2019 01:01:34 -0500
commit

c203aa0258fa3cd9f99a550e4e0c00e7140022cd

parent

fcf552f59635c158ee2fae6f1d175760dd0fb1c8

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

jump to
M database.godatabase.go

@@ -166,7 +166,7 @@ }

func getpublichonks() []*Honk { dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) - rows, err := stmtPublicHonks.Query(dt, 125) + rows, err := stmtPublicHonks.Query(dt, 100) return getsomehonks(rows, err) } func geteventhonks(userid int64) []*Honk {

@@ -198,11 +198,10 @@ return honks

} func gethonksbyuser(name string, includeprivate bool, wanted int64) []*Honk { dt := time.Now().UTC().Add(-7 * 24 * time.Hour).Format(dbtimeformat) + limit := 50 whofore := 2 - limit := 25 if includeprivate { whofore = 3 - limit = 50 } rows, err := stmtUserHonks.Query(wanted, whofore, name, dt, limit) return getsomehonks(rows, err)