all repos — honk @ 498d0ac5a05c80f21be0ffc5e7a0708127c2b597

my fork of honk

fix honkwindow
Anirudh Oppiliappan x@icyphox.sh
Tue, 29 Aug 2023 09:13:47 +0300
commit

498d0ac5a05c80f21be0ffc5e7a0708127c2b597

parent

1084b26f4ed25d38052a315fcff4349e6ae467b2

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

jump to
M database.godatabase.go

@@ -36,7 +36,7 @@ "humungus.tedunangst.com/r/webs/login"

"humungus.tedunangst.com/r/webs/mz" ) -const honkwindow time.Duration = 90 * 24 * time.Hour +var honkwindow time.Duration = 30 //go:embed schema.sql var sqlSchema string

@@ -247,7 +247,7 @@ }

func gethonksforme(userid int64, wanted int64) []*Honk { dt := time.Now().Add(-honkwindow).UTC().Format(dbtimeformat) - rows, err := stmtHonksForMe.Query(wanted, userid, dt, userid) + rows, err := stmtHonksForMe.Query(wanted, userid, dt, userid, 250) return getsomehonks(rows, err) } func gethonksfromlongago(userid int64, wanted int64) []*Honk {