random fiddling with numbers. no real reason.

This commit is contained in:
Ted Unangst 2019-11-13 01:01:34 -05:00
parent c78e446ac1
commit ba298e452a
1 changed files with 2 additions and 3 deletions

View File

@ -166,7 +166,7 @@ func getbonk(userid int64, xid string) *Honk {
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 @@ func geteventhonks(userid int64) []*Honk {
}
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)