need some osmosis in the combo hydration

This commit is contained in:
Ted Unangst 2019-10-08 02:23:02 -04:00
parent bf062066c2
commit c6d1a0928f
1 changed files with 1 additions and 1 deletions

2
web.go
View File

@ -740,7 +740,6 @@ func honkpage(w http.ResponseWriter, u *login.UserInfo, honks []*Honk, templinfo
reverbolate(userid, honks) reverbolate(userid, honks)
templinfo["Honks"] = honks templinfo["Honks"] = honks
if templinfo["TopXID"] == nil && len(honks) > 0 { if templinfo["TopXID"] == nil && len(honks) > 0 {
log.Printf("setting topxid")
templinfo["TopXID"] = honks[0].XID templinfo["TopXID"] = honks[0].XID
} }
err := readviews.Execute(w, "honkpage.html", templinfo) err := readviews.Execute(w, "honkpage.html", templinfo)
@ -1552,6 +1551,7 @@ func webhydra(w http.ResponseWriter, r *http.Request) {
case "combo": case "combo":
c := r.FormValue("c") c := r.FormValue("c")
honks = gethonksbycombo(userid, c) honks = gethonksbycombo(userid, c)
honks = osmosis(honks, userid)
templinfo["ServerMessage"] = "honks by combo: " + c templinfo["ServerMessage"] = "honks by combo: " + c
case "convoy": case "convoy":
c := r.FormValue("c") c := r.FormValue("c")