all repos — honk @ 67b02f8b36013caf5ee9e17b238458fa71df8d61

my fork of honk

fix a nil deref in event page
Ted Unangst tedu@tedunangst.com
Mon, 16 Dec 2019 17:36:04 -0500
commit

67b02f8b36013caf5ee9e17b238458fa71df8d61

parent

017dbe18581d5fb50bed5a7461c04e14ae84f0eb

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

jump to
M database.godatabase.go

@@ -191,7 +191,11 @@ return t1.After(t2)

}) now := time.Now().Add(-24 * time.Hour) for i, h := range honks { - if h.Time.StartTime.Before(now) { + t := h.Date + if tm := h.Time; tm != nil { + t = tm.StartTime + } + if t.Before(now) { honks = honks[:i] break }